The " . $table . " Times Table\n";
// Produce 12 lines for each table
for($counter=1; $counter<13; $counter++)
{
$answer = $table * $counter;
// Is this an even-number counter?
if ($counter % 2 == 0)
// Yes, so print this line in bold
print " $counter x $table = " .
"$answer";
else
// No, so print this in normal face
print " $counter x $table = $answer";
}
}
?>