Write an
acompanion
algorithm to
find out average
of 5 number
Answers
Answered by
5
Answer:
Explanation:
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