Search found 1 match

by goodluck
Thu Jul 27, 2006 6:24 am
Forum: Volume 103 (10300-10399)
Topic: 10370 - Above Average
Replies: 62
Views: 18493

10370 Compile Error :-(

i think it's very easy,but... this is my code,can anybody tell me why? #include<stdio.h> int main() { int sum=0; int a[100]; int i,j,k,c; scanf("%d",&i); for(k=0;k<i;k++) { scanf("%d",&j); for(k=0;k<j;k++) { scanf("%d",&a[k]); sum+=a[k]; } c=0; for(k=0;k<j;k++) { if(a[k]>float(sum/j)) c++; } printf(...

Go to advanced search