DevJourney

Python/VIT/sem-1/ex-04/avg-of-three-numbers.py

x=float(input("Enter the first number: "))
y=float(input("Enter the second number: "))
z=float(input("Enter the third number: "))
avg=(x+y+z)/3
print("The average of the numbers {0}, {1} and {2} is {3}".format(x,y,z,avg))
View on GitHub