Advertisement
whitestarrr

Untitled

Jan 31st, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. <?php
  2. $num = $_GET['num'];
  3. $rem = fmod('num', 3);
  4. if ($rem == 0) {
  5. echo "even";
  6. } else if ($rem ==round($rem)){
  7. echo "odd";
  8. } else {
  9. echo "Invalid";
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement