#include <iostream>
using namespace std;
int main(void)
{
int score = 0;
cin >> score;
if (score >= 90 and score <=100)
cout << "A" << endl;
else if(score >=80 and score <=89)
cout << "B" << endl;
else if(score >=70 and score <=79)
cout << "C" << endl;
else if(score >=60 and score <=69)
cout << "D" << endl;
else
cout << "F" << endl;
return 0;
}
'Computer Science > 백준 알고리즘' 카테고리의 다른 글
[백준] 10171번 고양이 (C++) (0) | 2022.06.16 |
---|---|
[백준] 9663번 N-Queen (파이썬) (0) | 2022.06.16 |
[백준] 9012번 괄호 (파이썬) (0) | 2022.06.16 |
[백준] 8958번 OX퀴즈 (C++) (0) | 2022.06.16 |
[백준] 8393번 합 (C++) (0) | 2022.06.16 |