<?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;
}
by ვაჟა ტყემალაძე
2 years ago
PHP
Problem Solving
0
Pro tip: use ```triple backticks around text``` to write in code fences