Write a program to find the average of three numbers.


a) INPUT num1, num2, num3: Here, num1 is the variable that will read the first number, num2 will read the second number, and num3 will read the third number entered by the user.

b) COMPUTE avg:=(num1+num2+num3)/3: As we want average of three numbers, we will divide the sum of all the three variables declared in part (a) to find the average marks and the average will be stored in variable avg.

c) PRINT avg: This code will print the average marks stored in a variable avg.

Final Answer:
Hence, the program to find average of three numbers is:
INPUT num1, num2, num3
COMPUTE avg:=(num1+num2+num3)/3
PRINT avg