Write the algorithm to calculate the average of any five natural numbers.
Answers
Answered by
0
Answer:
Solution:
// Program to calculate average of 5 numbers entered by users.
int main()
{
int num; // Declare 'num' to read number from users.
int sum, i; // Declare variables 'sum' to keep sum of numbers & 'i' used in for loop.
float average; // Declae variable 'average' of float type to save average value.
Similar questions
English,
4 months ago
Social Sciences,
4 months ago
Math,
9 months ago
English,
9 months ago
Geography,
1 year ago