Computer Science, asked by gauridudeja, 9 months ago

Write the algorithm to calculate the average of any five natural numbers.

Answers

Answered by Anonymous
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