CODE

<?php
/*
Greatest Number in Three Numbers
*/
$virable_A = 90;
$virable_B = 95;
$virable_C = 90;
if ($virable_A > $virable_B){
	if($virable_A > $virable_C){
		echo " $virable_A ";
	} else{
		echo " $virable_C ";
	}
}else {
	if($virable_B > $virable_C){
		echo " $virable_B ";
	} else{
		echo " $virable_C ";
	}
}
echo " Greatest Numbers <br>"; 


?>

OUTPUT

95 Greatest Numbers

Test Own Numbers

Enter a Number A :

Enter a Number B :

Enter a Number C :

Demo Program
demo
(Visited 2,024 times, 1 visits today)
Written by:

One thought on “Greatest Number in Three Numbers in Php

Leave a Reply

Your email address will not be published. Required fields are marked *