Computer Science, asked by rehangondal1234, 10 months ago

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 Anonymous
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