write a program called Sum And Average to produce the sum of 1,2,3 ..... to an upperbound (e.g,100) Also compute and display the Average. The output shall look like . The sum is 5050. The average is 50.5.
Answers
Answered by
0
Answer:
hi....its a python program...
Explanation:
n=int(input("enter the limit"))
sum=0
for i in range(1,n+1):
sum+=i
print("the sum is ",sum)
average=sum/n
print("the average is",average)
#hope it helps you
please mark brainliest
Similar questions
Social Sciences,
4 months ago
Math,
4 months ago
Physics,
4 months ago
Math,
9 months ago
Physics,
9 months ago
Political Science,
1 year ago