write an algorithm to print the average of three numbers.
Step by step like number wise. plzz
Answers
Answered by
1
Algorithm :
Step 1 : Start
Start 2 : Input num1, num2, num3
Start 3 : Calculate avg = (num1 + num2 + num3)/3)
Start 4 : Output avg
Start 5 : Stop
Program -
#include <stdio.h>
main()
{
int a, b, c, avg;
printf("\nEnter value of three numbers: ");
scanf("%i %i %i", &a, &b, &c);
avg = (a+b+c) / 3;
printf("\nAverage = %.2i", avg);
getch();
}
Attachments:
Answered by
2
Answer:
See this.
Explanation:
Hope this will help you..Please mark this answer as the brainliest and follow me.
Attachments:
Similar questions
English,
4 months ago
Math,
4 months ago
English,
9 months ago
Social Sciences,
1 year ago
Math,
1 year ago