
using System;
public class HelloWorld
{
public static void Main(string[] args)
{
int score = int.Parse(Console.ReadLine());
if(score >=0 && score <= 100){
if (score >= 90)
{
Console.WriteLine("A");
}
else if (score >= 80)
{
Console.WriteLine("B");
}
else if (score >= 70)
{
Console.WriteLine("C");
}
else if (score >= 60)
{
Console.WriteLine("D");
}
else
{
Console.WriteLine("F");
}
}
}
}
'C# > C# (백준)' 카테고리의 다른 글
[C#] 백준 알고리즘 2884번, 알람 시계 (0) | 2022.07.20 |
---|---|
[C#] 백준 알고리즘 14681번, 사분면 고르기 (0) | 2022.07.19 |
[C#] 백준 알고리즘 2753번, 윤년 (0) | 2022.07.18 |
[C#] 백준 알고리즘 2557번, Hello World (0) | 2022.07.18 |
[C#] 백준 알고리즘 1330번, 두 수 비교하기 (0) | 2022.07.18 |