Computer Science, asked by ajvismay2003, 4 months ago

Write a python program to calculate average of n numbers.​

Answers

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