<?php
function parOuImpar($n) {
    return ($n % 2 == 0);
}
$num = (intval(trim(fgets(STDIN))));
if (parOuImpar($num)) {
    echo "É par.";
}
else {
    echo "É ímpar.";
}
?>

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: