Computer Science, asked by mantashashaziasaeed, 1 year ago

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 eswarvts
2

\huge\mathfrak\green{Answer}

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

\huge\red{Thanks}</p><p>

I hope It will helps you...

Please mark me as Brainliest...

Similar questions
Math, 1 year ago