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
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
sum=0
for (i=1 to n) sum += i
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.