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 |
太郁闷了,WA了好几次,代码:In Reply To:输出格式理解错了 不理解错的话,程序太简单了 Posted by:secret_long at 2005-11-04 13:17:44 #include<stdio.h> int main() { float s = 0.0 ,sum ,k; int i ; for(i = 0; i <12; i++) { scanf("%f",&k); sum += k; } printf("$%0.2f\n",sum / 12.0); return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator