Computer Science, asked by ashishsharma51143, 4 months ago

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 madhalaimuthucharlas
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