Advertisement
rozman50

Untitled

Sep 11th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. $counter = 0;
  3. echo '<table>';
  4. for ($i=0; $i < 10; $i++) {
  5. echo '<tr>';
  6. for ($j=0; $j < 10; $j++) {
  7. echo "<td>";
  8. while (true) {
  9. if ($counter % 2 != 0) {
  10. echo $counter;
  11. $counter++;
  12. break;
  13. }
  14. $counter++;
  15. }
  16. echo "</td>";
  17. }
  18. echo "</tr>";
  19. }
  20. echo '</table>';
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement