Write a program to find the average of 3 numbers.
Ans.
x = int(input("Enter value 1 :"))
y = int(input("Enter value 2 :"))
z = int(input("Enter value 3 :"))
print("Three numbers are :", x, y, z)
avg = (x + y +z)/3
print("Average of given numbers : ", avg)
Answers
Answered by
0
Answer:
x = int(input("Enter value 1 :"))
y = int(input("Enter value 2 :"))
z = int(input("Enter value 3 :"))
print("Three numbers are :", x, y, z)
avg = (x + y +z)/3
print("Average of given numbers : ", avg)
copy paste this
Similar questions