3 like 0 dislike
192 views
設計一個兌換零錢的程式,讓使用者輸入欲兌換的零錢數目,可兌換硬幣分別是 50、10、5、1 四種,而且輸出時必須由大而小依序的顯示最多的兌換硬幣數目,例如:如果輸入 556 元,則是兌換 10 個 50 元、5 個10元、1 個 5 元跟 1 個1 元。

 

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

Related questions

3 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Jan 25, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21819 - Available when: Unlimited - Due to: Unlimited
| 149 views
3 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Jan 25, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21818 - Available when: Unlimited - Due to: Unlimited
| 155 views
3 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Jan 25, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21817 - Available when: Unlimited - Due to: Unlimited
| 163 views
2 like 0 dislike
0 answers
[Normal] Essay (Open question) - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21899 - Available when: Unlimited - Due to: Unlimited
| 213 views
2 like 0 dislike
0 answers
[Normal] Coding (C) - asked Jan 18, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
ID: 21769 - Available when: Unlimited - Due to: Unlimited
| 173 views
12,783 questions
183,443 answers
172,219 comments
4,824 users