<?php
for($i=1;$i<=20;$i++)
{
if($i%2==0)
{
echo "even".$i;
echo "\t";
}
else
{
echo "odd".$i;
echo "\t";
}
?>
To run and Output:-
<?php
for($i=1;$i<=20;$i++)
{
if($i%2==0)
{
echo "even".$i;
echo "\t";
}
else
{
echo "odd".$i;
echo "\t";
}
?>
To run and Output:-
Copyright (c) 2020 The Engineer's Choice All Rights Reserved
No comments:
Post a Comment
theengineerschoice01@gmail.com