[BOJ 8393] 합

View as PDF

Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 128M

Problem types
Allowed languages
Assembly, Awk, C, C++, Java, Pascal, Perl, Python, Sed, Text

n이 주어졌을 때, 1부터 n까지 합을 구하는 프로그램을 작성하시오.

입력 형식

첫째 줄에 n (1 ≤ n ≤ 10,000)이 주어진다.

출력 형식

1부터 n까지 합을 출력한다.

예제 입력

3

예제 출력

6

Comments

There are no comments at the moment.