Computer Science, asked by shrutidubey241984, 9 months ago

write an algorithm to print the average of three numbers.

Step by step like number wise. plzz​

Answers

Answered by ipatelsiddh
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 anindyaadhikari13
2

Answer:

See this.

Explanation:

Hope this will help you..Please mark this answer as the brainliest and follow me.

Attachments:
Similar questions