PHP > Loops in php > Beginner Next/Skip this question

What would be the output of the following PHP code snippet using "if" condition?

define("PI",3.14);
$r = 2;
$area = PI * $r * $r;
if($area <= 10)
{
 echo "area is less than or equal to 10 - ".$area;
}
else
{
 echo "area is greater than 10 - ".$area;
}
Answers :
Explaination :
social share share on facebook share on twitter share on google plus share on linkedin
Add Comments :

Login

Register

Next Question