Sum All Numbers
Your task is to find the sum of all integer numbers lying between 1 and N inclusive.
InputThe input consists of a single integer N that is not greater than (UNKNOWN) by it's absolute value.
OutputWrite to the output a single integer number that is the sum of all integer numbers lying between 1 and N inclusive.
Input:
Output:
2Output:
3Input:
Output:
-3Output:
-5Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.