Bomb Kirby Running
Cat Life - GT-K
9498번 시험 성적

2023. 3. 15. 14:38BaekJoon

단계별로 풀어보기 - 조건문 - 2단계

https://www.acmicpc.net/problem/9498

#include <iostream>
using namespace std;
int main()
{
    int score;
    cin>>score;
    
    if((score<=100)&&(score>=90))
    {
        cout<<"A";
    }
    
    else if((score<90)&&(score>=80))
    {
        cout<<"B";
    }
    
    else if((score<80)&&(score>=70))
    {
        cout<<"C";
    }
    
    else if((score<70)&&(score>=60))
    {
        cout<<"D";
    }
    
    else 
    {
        cout<<"F";
    }
    
    
    return 0;
}

'BaekJoon' 카테고리의 다른 글

14681번 사분면 고르기  (0) 2023.03.15
2753번 윤년  (0) 2023.03.15
1330번 두 수 비교하기  (0) 2023.03.15
10172번 개  (0) 2023.03.15
10171번 고양이  (0) 2023.03.15