Computer Science, asked by amansharma12319ash, 4 months ago

Write a program to find mean of any 5 numbers in Python​

Answers

Answered by BihariLadki
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 Anonymous
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