Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 533 Bytes

File metadata and controls

14 lines (8 loc) · 533 Bytes

05_01_change

Function

  • Declare following functions in includes/change/change.h
  • Implement following functions in includes/change/change.cpp

For example, call change(num_of_quarters, cents, QUARTER);. We will get the maximum number of quarters we can get from total cents, and cents will deducted the cents of these quarters for next calculation. QUARTER is a const number, which equals to 25.