Computer Science, asked by tanubhavna9440, 1 month ago

write a basic program to calculate the average of 5 numbers

Answers

Answered by rabin0449
3

Answer:

// Program to calculate average of 5 numbers entered by users.

{

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.

Explanation:

please mark me as your follower. hope it helps

Similar questions