Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $counter = 0;
- echo '<table>';
- for ($i=0; $i < 10; $i++) {
- echo '<tr>';
- for ($j=0; $j < 10; $j++) {
- echo "<td>";
- while (true) {
- if ($counter % 2 != 0) {
- echo $counter;
- $counter++;
- break;
- }
- $counter++;
- }
- echo "</td>";
- }
- echo "</tr>";
- }
- echo '</table>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement