write a program to accept 10 numders.find the sum of all numbers and print numbers of ten numbers (non anonymous question)
plz ans fast
Answers
Answered by
0
Explanation:
Pictorial Presentation:
Sample Solution:
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); } ...
Flowchart:
More items...•Feb 26, 2020
Similar questions