6일차 두정수 A, B를 입력받아 크기를 비교하는 프로그램

Console Programming/C# Console 2019. 9. 25. 11:11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Syntax15
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("두 수를 입력하세요.");
 
            int num1 = Int32.Parse(Console.ReadLine());
            int num2 = Int32.Parse(Console.ReadLine());
 
            if(num1>num2)
            {
                Console.WriteLine(">");
            }
            else if (num2>num1)
            {
                Console.WriteLine("<");
            }
            else
            {
                Console.WriteLine("==");
            }
        }
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 

 

: