Feed Headline Animator

Sum of ten numbers

main()
{
int a[10],sum =0,I;
float avg;
for (i=0<=9;i++);
{
printf(“Enter numbers\n”);
scanf(“%d”,&a[i]);
}
for (i=0,i<=9;i++);
sum +=a[i];
avg =aum/10;
printf(“Sum =%d”,sum);
printf(“average =%f”,avg);
getch();
}


Posted by: Wasim Javed

No comments:

Post a Comment