Favor

Report a typo

Carl asks you to count the sum of the first k natural numbers. Read k from the input, then add up numbers from 1 to k and print your answer.

Sample Input 1:

12

Sample Output 1:

78
Write a program in Python 3





___

Create a free account to access the full topic