Computer Science, asked by krishnagulati41, 5 months ago

Write a python program to find the average of the given numbers 90,95,96,80,85 using loops?

Answers

Answered by priyanshu99987
1

Explanation:

print ("calculate an average of first n natural numbers")

n = 10

average = 0

sum = 0

for num in range(0,n+1,1):

sum = sum+num;

average = sum / n

print("Average of first ", n, "natural number is: ", average)

Similar questions