백준 10952 A+B -5

Console Programming/C# Console 2019. 9. 26. 16:42
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
 
namespace _10952
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                string str = Console.ReadLine();
                string[] arr = str.Split(' ');
                int a = int.Parse(arr[0]);
                int b = int.Parse(arr[1]);
                if (a == 0 && b == 0)
                {
                    break;
                }
                Console.WriteLine(a + b);
            }
        }
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 

 

 

 

'Console Programming > C# Console' 카테고리의 다른 글

백준 1110 더하기사이클  (0) 2019.09.26
백준 10951 A+B -4  (0) 2019.09.26
백준 10950 A+B -3  (0) 2019.09.26
백준 2739 구구단  (0) 2019.09.26
백준 10817 세 수 (에러해결)  (0) 2019.09.26
: