mid_question_solve - xeeshad/E-commerce GitHub Wiki
Enter a Number:
Enter first Number:
Enter 2nd Number:
Enter third Number:
if($_POST)
{
$input=$_POST['input'];
Enter first Number:
Enter 2nd Number:
Enter third Number:
if($_POST)
{
$input=$_POST['input'];
if ($input > 2){
for ($i = 2; $i <= $input-1; $i++) {
if ($input % $i == 0) {
$value= True;
}
}
if (isset($value) && $value) {
echo 'the_number '. $input . ' is_not_odd_prime';
} else {
echo 'the_number '. $input . ' is_odd_prime';
}
}
else{ echo 'the_number '. $input . ' is_not_ odd_prime'; }
$variable1=$_POST['element1']; $variable2=$_POST['element2']; $variable3=$_POST['element3'];
if($variable1>$variable2 && $variable1>$variable3)
{
echo "the " . $variable1 ." is Maximum";
}
else if($variable2>$variable1 && $variable2>$variable3)
{
echo "the " . $variable2 ." is Maximum";
}
else
echo "the " . $variable3 ." is Maximum";
}
?>