<?php echo discount(5000, 35)."\n"; echo discount(2000, 50)."\n"; echo discount(1070, 10)."\n"; echo discount(670, 3)."\n"; function discount($price, $discount){ return $price-$price/100*$discount; }
Pro tip: use ```triple backticks around text``` to write in code fences