read n
sum=0
for (i=1 to n) sum += i
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
1 answer
Given a number (user input) you need an application that will produce a sum of the numbers from 1 to that given number
1 answer