Write a program to take 10 numbers as input and print their average.
11.
How is the query wizard used on a table?
Answers
Answered by
2
C Program
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c,d,e,f,g,h,I,j;
int tot;
float avg;
printf("\n Enter the ten numbers to know average:-");
scanf("%a %b %c %d %e %f %g %h %i %j", &a, &b, &c, &d, &e, &f, &g, &h, &i, &j);
tot=a+b+c+d+e+f+g+h+i+j;
avg=tot/10;
printf("\n Total = %d \n Average = %d",tot,avg);
getch
}
OUTPUT:-
Enter the ten numbers to know average:-
1 2 3 4 5 6 7 8 9 10
Total = 55
Avg = 5.5
I hope It will helps you...
Please mark me as Brainliest...
Similar questions
Social Sciences,
6 months ago
Science,
6 months ago
Math,
6 months ago
Social Sciences,
1 year ago
Math,
1 year ago