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> main() { float a[12]; int i=12; float sum=0; float average; for(i=0;i<12;i++) { scanf("%f",&a[i]); printf("%5.2f\n",a[i]); } for(i=0;i<12;i++) sum=sum+a[i]; average=sum/12; printf("$%5.2f",average); getchar(); getchar(); } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator