PHP Compiler
<!DOCTYPE html> <html> <body> <?php $num = 12; $count = 0; $i = 1; while($num >= $i) { if($num % $i == 0) $count++; $i++; } if($count > 2) printf("$num is a composite number"); else printf("$num is not a composite number"); ?> </body> </html>
OUTPUT
12 is a composite number
×

Save as Private