Finding a number is odd or even without condition and loop.
For finding out a number is odd or even normally we use conditions. The normal way is to divide the number by 2 and will check for the reminder. If it is 0 then the number is even. Else the number is odd.
Here is a method which do not use conditions or loops to verify odd or oven.
$temp_arr = ["Even", "Odd"];
$number = 25;
echo $ number." is an ".($temp_arr[$number % 2]) ." Number"
You can give the input to $number. The output will show whether the number is odd or even.