Problem
https://www.acmicpc.net/problem/9498
Solution
code(python)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
x = int(input())
if 90<=x<=100:
print("A")
elif 80<=x<=89:
print("B")
elif 70<=x<=79:
print("C")
elif 60<=x<=69:
print("D")
else :
print("F")
code(c)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
int main()
{
int a;
scanf("%d", &a);
if (a>=90){
printf("A");
}
else if (a>=80){
printf("B");
}
else if (a>=70){
printf("C");
}
else if (a>=60){
printf("D");
}
else{
printf("F");
}
}