Answers for "how can you tell if a number is even or odd without using any condition or loop in php"

PHP
4

How to check even or odd number in php

$num = 85;
if($num % 2 == 0){
echo "this is even number";

}else{
echo "this is odd number";
}
Posted by: Guest on August-24-2020

Code answers related to "how can you tell if a number is even or odd without using any condition or loop in php"

Browse Popular Code Answers by Language