1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int score; char grade; printf("¼ºÀûÀ» ÀÔ·ÂÇϽÿÀ: "); scanf("%d", &score); if (score >= 90) grade = 'A'; else if (score >= 80) grade = 'B'; else if (score >= 70) grade = 'C'; else if (score >= 60) grade = 'D'; else grade = 'F'; printf("ÇÐÁ¡ %c \n", grade); return 0; } | cs |