tim has 13 10 - dollar bills , 11 5 - dollar bills , and 17 one - dollar bills . if tim needs to pay exactly $ 128 , what is the least number of bills he will need to use ?
128 is the total sum of money . as we have 13 10 dollar bills so the closest we can get to 128 using the 10 dollar bills is by using 12 * 10 dollar bils 128 - 120 = 8 so now we need to get 8 from either 5 dollar bills or 1 dollar bills 8 - 5 ( use only 1 5 dollar bill ) = 3 so we can get 3 from using 3 $ 1 bills . hence 16 ( 12 + 1 + 3 ) answer is d
add(add(subtract(13, const_1), const_1), const_3)