6 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. ";

    if($N%2==0)
    {
    echo "The given number is even";
    echo "
    ";
    }

    else
    {
    echo "The given number is odd";
    echo "
    ";
    }

    ?>

    ReplyDelete
  3. php
    $num=$_POST['n1'];
    if($num%2==0)
    echo"the number $num is even";
    else
    echo"the number $num is odd";

    ReplyDelete
  4. $check=$_GET["num"];
    if($check%2==0)
    echo "even";
    else
    echo "odd";

    ReplyDelete
  5. $N=$_POST['n'];

    echo "The no. to be checked is :".$N;
    echo "
    ";

    if($N%2==0)
    {
    echo "The given number is even";
    echo "
    ";
    }

    else
    {
    echo "The given number is odd";
    echo "
    ";
    }

    ReplyDelete
  6. ?php
    $num1=$_POST["num"];
    if($num1%2==0)
    {echo"$num1"."even";
    }else
    {echo"$num1"."odd";}
    ?>

    ReplyDelete