Advertisement
Guest User

JE SAIS OU TU TE CACHES

a guest
Jan 22nd, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <section>
  2. <h2>Question 9</h2>
  3. <ul>
  4. <table id="multiplications">
  5. <tr>
  6. <th>*</th>
  7. <?php
  8. for($i = 2; $i <= 9; $i++) {
  9. echo '<th>'.$i.'</th>';
  10. }
  11. ?>
  12. </tr>
  13. <?php
  14. for($i = 2; $i <= 9; $i++) {
  15. echo '<tr>';
  16. echo '<th>'.$i.'</th>';
  17. for($n = 2; $n <= 9; $n++) {
  18. echo '<td>'.$i*$n.'</td>';
  19. }
  20. echo '</tr>';
  21. }
  22. ?>
  23. </table>
  24. </section>
  25. </body>
  26.  
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement