Check a number whether it is even or odd
- Get link
- X
- Other Apps
<?php
// PHP code to check whether the number // is Even or Odd in Normal wayfunction check($number){ if($number % 2 == 0){ echo "Even"; } else{ echo "Odd"; }} // Driver Code$number = 39;check($number)?>- Get link
- X
- Other Apps
Comments
Post a Comment