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 |
学长学姐们帮忙看一下到底哪儿错了?#include<stdio.h> void main() { float a[12];double b=0; int i; for(i=0;i<12;i++) scanf("%.2f",&a[i]); for(i=0;i<12;i++) printf("%f\n",a[i]); for(i=0;i<=11;i++) b+=a[i]; b=b/12; printf("$%.2f\n",b); } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator