Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
用c语言做的,不知道为什么不能用"iostream.h"#include<stdio.h> void main() { float sum=0,ave; float monpay; int i=1; for(i=1;i<=12;i++) { scanf("%f",&monpay); sum+=monpay; } ave=sum/12; printf("$%.2f\n",ave); } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator