Develop a program which calculate 1+2+... ...+n and output the result to the screen.
n is defined by user input.
Input Specification:
Input a positive integer.
Output Specification:
For each test case, print in a line the value of 1+2+... ...+n by s=value
Sample Input: 35 Sample Output: s=630
Sample Input: 100 Sample Output: s=5050
Answers
Answered by
0
Answer:
good night
Explanation:
have a peaceful and relaxing sleep
Similar questions