Math, asked by Sachinsaini975, 1 year ago

Write an algorithm to calculate the average of two numbers

Answers

Answered by homosapiens45
30

Algorithm to calculate average of two numbers.


Algorithm


Step 1 : Start

Step 2 : Input number1, number2

Step 3 : sum = 0 ; average = 0

Step 4 : Calculate sum = (number1 + number2)

Step 5 : Average = sum / 2

Step 6 : Print average of two numbers

Step 7 : Stop


Answered by yashvikrishnaghatkar
4

Start

Input A and B

Avg =(A+B)/2

Print AVG

Stop

Similar questions