find the sum and average of three numbers taken from the user
Answers
Answered by
1
- #Python Program
- Sum=0
- for i in range(3):
- a=int(input("enter the number::"))
- Sum+=a
- avg =sum/3
- print("sum is:",Sum)
- print("avg is:",avg)
Similar questions