If tutorials available on this website are helpful for you, please whitelist this website in your ad blocker😭 or Donate to help us ❤️ pay for the web hosting to keep the website running.
<?php
function check_even_odd($number)
{
if($number%2 == 0)
echo "$number is an even number.";
else
echo "$number is an odd number.";
}
/*now test*/
check_even_odd(22);
echo"<br/>";
check_even_odd(21);
?>
22 is an even number. 21 is an odd number.
Hi ! My name is Rahul Kumar Rajput. I'm a back end web developer and founder of learnhindituts.com. I live in Uttar Pradesh (UP), India and I love to talk about programming as well as writing technical tutorials and tips that can help to others.
Get connected with me. :) LinkedIn Twitter Instagram Facebook