This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(void) | |
{ | |
int num; | |
cin >> num; | |
if(num >= 90) { | |
cout << "A" << "\n"; | |
} else if(num >= 80 && num <= 89) { | |
cout << "B" << "\n"; | |
} else if(num >= 70 && num <= 79) { | |
cout << "C" << "\n"; | |
} else if(num >= 60 && num <= 69) { | |
cout << "D" << "\n"; | |
} else { | |
cout << "F" << "\n"; | |
} | |
return 0; | |
} |
'문제풀이 > 백준' 카테고리의 다른 글
1463 - 1로 만들기 (0) | 2021.06.22 |
---|---|
11052 - 카드 구매하기 (0) | 2021.06.22 |
1026 - 보물 (0) | 2021.06.22 |
2579 - 계단 오르기 (0) | 2021.06.22 |
24389 - 별 찍기 - 2 (0) | 2021.06.22 |