Asked by Neero

Design a program that generates the sum of numbers.

Given a number (user input) you need an application that will produce a sum of the numbers from 1 to that given number

Answers

Answered by Steve
read n
sum=0
for (i=1 to n) sum += i
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions