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 Navya
Getting 'No EntityManager with actual transaction available for current thread' exception while removing some data
How to fix Found use of deprecated [org.hibernate.id.SequenceGenerator] sequence-based id generator; use org.hibernate.id.enhanced.SequenceStyleGenerator instead