write a programme to find sum and avg of 10 numbers
Answers
Answered by
2
Hello,
C Code:
#include <stdio.h>void main()
{
int i,n,sum=0;
float avg;
printf("Input the 10 numbers : \n");
for (i=1;i<=10;i++)
{
printf("Number-%d :",i);
scanf("%d",&n);
sum +=n;
}
avg=sum/10.0;
printf("The sum of 10 no is : %d\nThe Average is : %f\n",sum,avg);
}
So,my friend this was the programme format
hope i helped u
plz mark as Brainliest
abhisheksp:
was that helpul to u
Answered by
2
Consult the attachment if its a java program
Attachments:
Similar questions