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
| 62 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:3.230.144.31
©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
| 65 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
| 54 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
| 68 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
| 67 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
| 111 views
12,118 questions
158,015 answers
158,423 comments
4,515 users