3 like 0 dislike
94 views

利用 if…else 完成下列程式碼,將 a,b,c 的最小值儲存到變數 min 中。

      int a, b, c, min; 

      scanf("%d %d %d",&a,&b,&c); 

      if( $1 ) min=b; else min=a;

      if( $2 ) min=c;

 

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

[Normal] Fill in the blank - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21839 - Available when: Unlimited - Due to: Unlimited
| 94 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.71.222.202
©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
| 99 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
| 108 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
| 122 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
| 110 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: 21841 - Available when: Unlimited - Due to: Unlimited
| 116 views
12,783 questions
183,443 answers
172,219 comments
4,824 users