a program to print the sum product and average of 4 numbers given by the user
Answers
Answered by
0
Answer:
a = int(input("Enter 1st number:"))
b = int(input("Enter 2nd number:"))
c = int(input("Enter 3rd number:"))
d = int(input("Enter 4th number:"))
sum = a + b + c + d
avg = sum / 4.0
print("sum=" + sum)
print("Average="+ avg)
Similar questions