3 like 0 dislike
寫一個程式輸入四個相異整數 A,B,C,D,使用 if…else 算出這四個數的最大數與最小數,最大數儲存在 max,最小數儲存在變數 min。

Sample Input:

1 2 3 4

Sample Output:

Max: 4

Min: 1

 

參考書籍:旗標無痛學習教本
[Normal] Coding (C) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21842 - Available when: Unlimited - Due to: Unlimited
| 56 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:3.215.79.116
©2016-2021

Related questions

3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21833 - Available when: Unlimited - Due to: Unlimited
| 57 views
3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21832 - Available when: Unlimited - Due to: Unlimited
| 47 views
3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21831 - Available when: Unlimited - Due to: Unlimited
| 58 views
3 like 0 dislike
0 answers
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21830 - Available when: Unlimited - Due to: Unlimited
| 51 views
3 like 0 dislike
1 answer
[Normal] Coding (C) - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21829 - Available when: Unlimited - Due to: Unlimited
| 98 views
11,850 questions
152,255 answers
155,880 comments
4,159 users