Check the given number is even or odd in PHP ?


<?php

$i=4;

if($i%2==0)

{

echo "Even".$i;

}

else

{

echo "odd".$i;

 

 To run :-

 









Output:-





No comments:

Post a Comment

theengineerschoice01@gmail.com