9498 시험성적
Console/Algorithm 2019. 9. 27. 23:05
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
34
35
36
37
38
39
40
41
42
43
44
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Syntax1
{
class Program
{
static void Main(string[] args)
{
int input = int.Parse(Console.ReadLine());
if (90<=input&&input<=100)
{
Console.WriteLine("A");
}
else if (input >= 80 && input < 90)
{
Console.WriteLine("B");
}
else if (input >= 70 && input < 80)
{
Console.WriteLine("C");
}
else if (input >= 60 && input < 70)
{
Console.WriteLine("D");
}
else
{
Console.WriteLine("F");
}
}
}
}
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
|
'Console > Algorithm' 카테고리의 다른 글
2753 윤년 (0) | 2019.09.27 |
---|---|
1330 두 수 비교하기 (0) | 2019.09.27 |
2588 곱셈 (0) | 2019.09.27 |
10430 나머지 (0) | 2019.09.27 |
10869 사칙연산 (0) | 2019.09.27 |