1 men takes 37 $ to eat a pizza in restaurant such that it have discount multiple of 4 if u eat more pizza . discount increase by multiple of 4 every pizza u eat . for 1 pizza 0 % off . for 2 pizza % off for 3 pizza 8 % off . pizza without discount is 10 $ . how much that man eats the pizza .
solution : b . for 1 pizza 10 $ . for 2 pizza 10 $ + 9.6 $ ( 4 % off ) = 19.6 , for 3 pizza 19.6 + 9.2 ( 8 % off ) = 28.8 , for 4 pizza 28.8 + 8.8 ( 12 % off ) = 37.6 . so he have 37 so he cant eat 4 th pizza .
subtract(multiply(10, 4), 37)