function ajedrez($tam) {
?>
<table >
<?php
for ($i = 0; $i < $tam; $i++) {
?><tr><?php
for ($j = 0; $j < $tam; $j++) {
?><td class="<?= ($i + $j) % 2 == 0 ? "" : "dark" ?>"></td><?php }
?></tr><?php
}
?>
</table><?php
}
function tabla($tabla) {
?><table>
<?php
for ($i = 1; $i <= 10; $i++) {
?>
<tr><td><?= $i ?></td><td>x</td><td><?= $tabla ?></td>
<td>=</td><td><?= ($i * $tabla) ?></td></tr>
<?php
}
?>
</table><?php
}