Program to get the Average of given numbers.

In this basic Python program, we will get the Average of given numbers.

Steps to solve the program
  1. Take three numbers as input.
  2. The average is calculated by adding the numbers divided by the total numbers ( i.e a+b+c/3).
  3. Print the output.

    Program :
a = 30
b = 20
c = 40

print("Average of Three Numbers : ", (a + b + c)/3)

Output :

Average of Three Numbers : 30.0


Leave a Comment