2 like 0 dislike
91 views
寫一個程式找零錢。程式首先讀入一個介於1與100之間的整數,然後使用最少數目的50,10,5,1硬幣湊足給定的整數。
Sample Input:

96

Sample Output:

50:1

10:4

5:1

1:1

參考書籍:由片語學習C程式設計
[Normal] Coding (C) - asked in Introduction to Computer Programming I (C) by (20.9k points)
ID: 21772 - Available when: Unlimited - Due to: Unlimited

edited by | 91 views
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.70.134.76
©2016-2024

Related questions

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: 21777 - Available when: Unlimited - Due to: Unlimited
| 79 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: 21776 - Available when: 1899-12-31 00:00:00 - Due to: Unlimited
| 91 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: 21775 - Available when: Unlimited - Due to: Unlimited
| 88 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: 21774 - Available when: Unlimited - Due to: Unlimited
| 126 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: 21773 - Available when: Unlimited - Due to: Unlimited
| 97 views
12,783 questions
183,443 answers
172,219 comments
4,824 users