Skip to content

Instantly share code, notes, and snippets.

@RodriAndreotti
Last active October 1, 2016 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RodriAndreotti/fd7534694fd74d2eacdf4b21cc130511 to your computer and use it in GitHub Desktop.
Save RodriAndreotti/fd7534694fd74d2eacdf4b21cc130511 to your computer and use it in GitHub Desktop.
Código que verifica se um número é par ou ímpar
<?php
$numero = 49;
if($numero % 2 == 0){
echo "O número é par";
}
else {
echo "O número é ímpar!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment