백준 9498 시험 성적

Console Programming/C# Console 2019. 9. 26. 08:23
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
using System;
 
namespace _9498
{
    class Program
    {
        static void Main(string[] args)
        {
            int input = int.Parse(Console.ReadLine());
 
            if(input<=100 && input>=90)
            {
                Console.WriteLine("A");
            }
            else if (input <= 89 && input >= 80)
            {
                Console.WriteLine("B");
            }
            else if (input <= 79 && input >= 70)
            {
                Console.WriteLine("C");
            }
            else if (input <= 69 && input >= 60)
            {
                Console.WriteLine("D");
            }
            else
            {
                Console.WriteLine("F");
            }
 
 
        }
    }
}
 
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
 

 

 

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

백준 2884 알람 시계  (0) 2019.09.26
백준 2753 윤년  (0) 2019.09.26
백준 1330 두 수 비교하기  (0) 2019.09.26
백준 10430 나머지  (0) 2019.09.25
백준 10869 사칙연산  (0) 2019.09.25
: