Write a program that input a New Taiwan Dollar amount and then shows how to pay that amount using the small bills of $1000, $500, $100, $50, $10, $5 and $1.
將台幣現鈔換成1000, 500, 100, 50, 10, 1 元零錢
Example input:
763
Example output:
NT$1000 bills:0 NT$500 bills:1 NT$100 bills:2 NT$50 bills:1 NT$10 bills:1 NT$5 bills:0 NT$1 bills:3
Hint: Divide the amount by 1000 to determine the number of $1000 bills needed, and then reduce the amount by the total value of the $1000 bills. Repeat for the other bills sizes. Be sure to use integer values throughout, not floating-point numbers.
Hidden content!* * * ** * *** * main(){ * * * int money, a, b, c, d, e, f, g, h, i, j, k, l;* * * * * * * * * * ** * * input Taiwan Dollar * ***** * *