find the greatest number among three number.


 

 
 <?php
///WAP to find the greatest number among three number;
$a=3;
$b=5;
$c=7;
if($a>$b&&$a>$c)
{
echo "a is greater".$a;

}
else if ( $b>$c&&$b>$a)
{
echo "b is gretarer".$b;
}
else
{
echo " c is greater".$c;
}
 

 Output:-


 

No comments:

Post a Comment

theengineerschoice01@gmail.com