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