<?php
function EDivisivel($a, $b) {
return ($a % $b == 0);
}
$a = (int) (trim(fgets(STDIN)));
$b = (int) (trim(fgets(STDIN)));
if (EDivisivel($a, $b)) {
echo "{$a} É divisível por {$b}.";
}
else {
echo "{$a} Não é divisível por {$b}.";
}
?>
To embed this project on your website, copy the following code and paste it into your website's HTML: