Write a program to find mean of any 5 numbers in Python
Answers
Answered by
5
Answer:
Program :
num = int(input('How many numbers: '))
total_sum = 0.
for n in range(num):
numbers = float(input('Enter number : '))
total_sum += numbers.
avg = total_sum/num.
print('Average of ', num, ' numbers is :', avg)
Answered by
1
Program :
- num = int(input('How many numbers: '))
- total_sum = 0.
- for n in range(num):
- numbers = float(input('Enter number : '))
- total_sum += numbers.
- avg = total_sum/num.
- print('Average of ', num, ' numbers is :', avg)
Similar questions