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;
namespace Syntax15
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("두 수를 입력하세요.");
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
|
'Console Programming > C# Console' 카테고리의 다른 글
6일차 설탕공장 알고리즘(최대한 적은 수의 봉지로 배달하기) (0) | 2019.09.25 |
---|---|
6일차 알람 45분 일찍 맞추기 (0) | 2019.09.25 |
6일차 문자열 표현식들 (0) | 2019.09.25 |
성적입력 프로그램 2일차 (0) | 2019.09.24 |
5일차 최대공약수 구하기 (0) | 2019.09.24 |