Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(void)
- {
- char GPA;
- printf("請輸入成績等別.\n");
- scanf("%c",&GPA);
- printf("%C已輸入.\n",GPA);
- printf("===========================\n") ;
- if(GPA=='A')
- {
- printf("成績範圍超過80分~YAAAAA~\n");
- }
- else if(GPA=='B')
- {
- printf("成績範圍70~80分~MMMM~\n");
- }
- else if(GPA=='C')
- {
- printf("成績範圍60~70分~AHHHHHH~\n");
- }
- else if(GPA=='D')
- {
- printf("成績不及格~NOOOOOO~\n");
- }
- else
- {
- printf("混蛋!!!別亂輸入!!!!\n");
- }
- printf("===========================\n") ;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment