<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>FOR</title>
</head>
<body>
<center>
<table cellpadding=5 cellspacing=5>
<?
for ( $i=2; $i<=9; $i++ ) {
if ( $i % 4 == 2 ) echo "<tr>";
echo "<td>";
for ( $j=1; $j<=9; $j++ ) {
echo $i . " * " . $j . " = " . $i*$j . "<br>";
}
echo "</td>";
if ( $i % 4 == 1 ) echo "</tr>";
}?>
</table>
</center>
</body>
</html>