<html>
<h3> 2 Dimensional 10 X 10 Multiplication Table </h3>
<table border=1 bgcolor=lightyellow><tr bgcolor='cyan'><th>X</th>
<?PHP
function mult_table($max_row, $max_col)
{
for ($col=1; $col<=$max_col; $col++)
print "<th> $col </th>";
print "</tr>";
for ($row=1; $row<=$max_row; $row++)
{
print "<tr><th bgcolor=cyan> $row </th> \n";
$col = 1;
while ($col <= $max_col)
{
print "<td>" . ($row*$col) . "</td>";
$col++;
}
print "</tr>";
}
}
mult_table(10,10);
?>
</table>
</html>