Unformatted text preview: More=change/0.10 More=37.306 Pennies=change*100 Pennies=373.06 Some=(pennies%100)/10 Some7.306 More and some are integers so values get truncated Output: Keeping all the change, 37 you can buy pieces. Keeping only the coins, 7 you can buy pieces. 2.52 Output: f(a) = 41.00 for a = 6.50 f(a) = 47.10 for a = 4.90 f(a) = 29.20 for a = 2.10...
View Full Document
- Fall '07
- Prime number, Pages, Joshua Okrent, Khadija Benjlali