3 like 0 dislike
240 views

假設學生成績小於 60 分為丁等、而 60 ~ 79分為丙等,80~89分為乙等,90(含)分以上為甲等。請根據已經給的程式碼,完成其他的部分以達成所需的目的,包含printf 指令的內容。

int grade; 

printf("成績分等, 請輸入成績\n"); 

scanf("%d",&grade);

if( $1 ) printf("丁等\n");

else if (grade >= 60 && grade < 80) printf("丙等\n");

else if( $2 ) printf("乙等\n");

else printf("甲等\n");

 

參考書籍:旗標無痛學習教本

[Normal] Fill in the blank - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21841 - Available when: Unlimited - Due to: Unlimited
| 240 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.100.62
©2016-2024

Related questions

4 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21894 - Available when: Unlimited - Due to: Unlimited
| 236 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 6, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21856 - Available when: Unlimited - Due to: Unlimited
| 237 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 6, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21855 - Available when: Unlimited - Due to: Unlimited
| 248 views
3 like 0 dislike
0 answers
[Normal] Fill in the blank - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21849 - Available when: Unlimited - Due to: Unlimited
| 253 views
3 like 0 dislike
0 answers
12,783 questions
183,443 answers
172,219 comments
4,824 users