Answers for "even odd 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
4

php odd or even

$num = 34;
if ($num % 2 == 0) {
  print "It's even";
}
Posted by: Guest on August-07-2020
0

even odd php

$n=122;
if($n%2==0)
{
    echo "$n is even number";
}
else{
    echo"$n is odd number";
}
Posted by: gptv123 prajapati on August-12-2022

Browse Popular Code Answers by Language