1330 두 수 비교하기

Console/Algorithm 2019. 9. 27. 23:17

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
string input = Console.ReadLine();
            string[] arr = input.Split(' ');
            int A = int.Parse(arr[0]);
            int B = int.Parse(arr[1]);
 
            if (A > B)
            {
                Console.WriteLine(">");
            }
            else if (A < B)
            {
                Console.WriteLine("<");
            }
            else
            {
                Console.WriteLine("==");
            }
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 

'Console > Algorithm' 카테고리의 다른 글

10817 세수  (0) 2019.09.28
2753 윤년  (0) 2019.09.27
9498 시험성적  (0) 2019.09.27
2588 곱셈  (0) 2019.09.27
10430 나머지  (0) 2019.09.27