1
0

c4-6.c 337 B

12345678910111213141516
  1. #include <stdio.h>
  2. int main()
  3. {
  4. char grade;
  5. scanf("%c",&grade);
  6. printf("Your score:");
  7. switch(grade)
  8. {
  9. case 'A': printf("85ĄŤ100\n");break;
  10. case 'B': printf("70ĄŤ84\n");break;
  11. case 'C': printf("60ĄŤ69\n");break;
  12. case 'D': printf("<60\n");break;
  13. default: printf("data error!\n");
  14. }
  15. return 0;
  16. }