Search found 1 match

by Saiful Islam
Wed Sep 14, 2011 5:09 pm
Forum: Volume 103 (10300-10399)
Topic: 10370 - Above Average
Replies: 62
Views: 29318

Re: 10370 - Above Average runtime error???

why am i getting runtime error...plz help me out..here is my code..
#include<stdio.h>

int main()

{
int t,n,arr[100],i,j,count;
double avg,res,numb;
char ch='%';

scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%d",&n);
avg=0;
for(j=0;j<n;j++)
{
scanf("%d",&arr[j]);
avg+=arr[j];
}
numb=j ...

Go to advanced search