Connect with one of the following accounts


Please wait while we redirect...

Views: 135   

Following program shows you how to print average of given 3 numbers.
In this program we get numbers from user and calculate average of given 3 numbers using following formula
Average of given 3 numbers = (number1 + number2 + number3) / 3

number1 = int(input("Please first number:"))
number2 = int(input("Please second number:"))
number3 = int(input("Please third number:"))
result = (number1 + number2 + number3) / 3
print("The average of three numbers: " , result)


Please first number: 12
Please second number: 22
Please third number: 35
The average of three numbers:  23.0

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News