In the event of technical difficulties with Szkopuł, please contact us via email at firstname.lastname@example.org.
If you are familiar with IRC chat, the support team is also reachable on PIRC network (
#szkopul channel. If you are not, just use email.
Please do not ask us things like "how to solve task XYZ?".
Please remember that the support team has to sleep sometimes or go to work in real life.
John got a bad mark in math. The teacher gave him another task. John is to write a program which computes the sum of integers from 1 to . If he manages to present a correct program, the bad mark will be cancelled.
Write a program which:
The first and only line of the standard input contains one integer ().
One integer is to be written to the standard output. This integer should be the sum of integers from 1 to .
For the input data:
the correct result is:
Task author: Piotr Stanczyk.