Codice PHP:
function sottrai($num) {
  while (
$num 90
    
$num-=90;
return 
$num;
}
echo 
sottrai(360);