Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Finding Even and Odd Numbers

<?php
      $check1 = 3534656;
      $check2 = 3254577;
      if($check1%2 == 0) {
        echo "$check1 is Even number <br/>";
        
      } else {
        echo "$check1 is Odd number <br/>";
      }

      if($check2%2 == 0) {
        echo "$check2 is Even number";
      } else {
        echo "$check2 is Odd number";
      }
    ?>
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Finding #Even #Odd #Numbers
ADD COMMENT
Topic
Name
2+6 =