<?php
$all = array();
enter code here
for($i = 1 ; $i <= 100 ; $i++){
$ric=sqrt($i);
if(is_int($ric) == true){
$all[] = $i;
}
}
$max = max($all);
$min = min($all);
echo "MIN=".$min."<br>";
echo "MAX=".$max;
Hello I changed my codes and instead of if((int)$ric - $ric == 0)
I write this if(is_int($ric) == true)
but it gets me wrong.What is the problem? please help me out.