#pragma warning(disable: 4996)
#include <stdio.h>
int main()
{
int score;
char grade;
// μ μ μ
λ ₯λ°κΈ°
printf("νμμ μ μλ₯Ό μ
λ ₯νμμ€ : ");
scanf("%d", &score);
// μ€μ²© μΌνμ°μ°μλ‘ νμ νλ³
// νμ€λ‘ μμ± κ°λ₯νμ§λ§ κ°λ
μ± μν΄ λΆλ¦¬ν¨
grade = (score >= 90) ? 'A' : // μ²μ νλ³ν΄μ λ§μΌλ©΄ A κ±°μ§μ λλ¨Έμ§ μ λΆ
(score >= 80) ? 'B' : // νλ³ ν λ§μΌλ©΄ B μλλ©΄ λλ¨Έμ§ μ λΆ
(score >= 70) ? 'C' : // μΈλ―Έμ½λ‘ μ μλ£μ΄μ νμ€μ΄λ€.
(score >= 60) ? 'D' : 'F';
printf("νμ : %c \n", grade);
return 0;
}