백준 8393 합
Console Programming/C# Console 2019. 10. 1. 08:26|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using System;
namespace _8393
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
int sum = 0;
for(int i = 1; i<=n; i++)
{
sum += i;
}
Console.WriteLine(sum);
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|

'Console Programming > C# Console' 카테고리의 다른 글
| 백준 11022 A+B -8 (0) | 2019.10.01 |
|---|---|
| 백준 11021 A+B -7 (0) | 2019.10.01 |
| 백준 10950 A+B -3 (0) | 2019.10.01 |
| 문자열 다루기 string. Method (0) | 2019.09.27 |
| 백준 1110 더하기사이클 (0) | 2019.09.26 |

