Home > Back-end >  Small white help solve the problem of change c
Small white help solve the problem of change c

Time:10-04

Subject content:
Change for the customer, want to choose the paper currency number, at least 73 yuan, for example, want to change the one with a face value of 50 yuan, 20 yuan one, one yuan 3, set the change value 50 yuan, 20 yuan, 10 yuan, five yuan and one yuan, please write a program, the user to enter the number under 100, calculating to find the customer of the bank note number,
C + + Mooc course exercises from xi 'an jiaotong university

CodePudding user response:

Should be more than a whiting division algorithm, divided by the first 50, quotient of 50 number, more than on to the next step, in turn, divided by the,10,5,1 and take more than 20, more than 0 to get results

CodePudding user response:

black fertilizer will play a reference 1 floor response:
should be more than a whiting division algorithm, divided by the first 50, quotient of 50 number, more than on to the next step, in turn, divided by the,10,5,1 and take more than 20, more than 0 results
seem less, so the total paper currency number may not be the least

CodePudding user response:

black fertilizer will play a reference 1 floor response:
should be more than a whiting division algorithm, divided by the first 50, quotient of 50 number, more than on to the next step, in turn, divided by the,10,5,1 and take more than 20, more than 0 results


This technique is

CodePudding user response:

Well I try thank you

CodePudding user response:

To determine whether more than 50 20 5 1
To do as the above methods
  • Related