Write a python program to calculate average of n numbers.
Answers
Answered by
5
Explanation:
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
9
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)
Explanation:
Hope it will helps you
10❣️+follow=inbox
Similar questions