Programming Pandit

c/c++/c#/Javav/Python


Latest Update

Monday, February 6, 2023

Write a PHP script to find largest among three numbers

<?php

 

$num1=20;

 

$num2=15;

 

$num3=22;

 

if($num1>$num2 && $num1>$num3){ echo $num1;

}

 else{

 

if($num2>$num1 && $num2>$num3){ echo $num2;

}

 else

 echo $num3;

 

}

 

?>

 



Output : 

 

22

 


No comments:

Post a Comment