Write a program to input any 10 numbers and calculate their average using user defined
aim, algorithm and flowchart
Answers
Answered by
0
Answer:
#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);
}
Answered by
0
Explanation:
writing a program, first needs to find a procedure for ... Step 3 Outline the algorithm's operations: Use input variable for ... Algorithm & Flowchart to find the sum of two numbers
Similar questions