Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

为什么老是错误

Posted by mixiaoli at 2010-05-01 19:32:20 on Problem 1004
#include<stdio.h>
int main()
{
float n[12];
float sum,m;
int i;
for(i=1;i<=12;i++)
    scanf("%f",&n[i]);
sum=0.00;
for(i=1;i<=12;i++)
    sum=sum+n[i];
m=sum/12;
printf("$%f\n",m);
return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator