Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section>
- <h2>Question 9</h2>
- <ul>
- <table id="multiplications">
- <tr>
- <th>*</th>
- <?php
- for($i = 2; $i <= 9; $i++) {
- echo '<th>'.$i.'</th>';
- }
- ?>
- </tr>
- <?php
- for($i = 2; $i <= 9; $i++) {
- echo '<tr>';
- echo '<th>'.$i.'</th>';
- for($n = 2; $n <= 9; $n++) {
- echo '<td>'.$i*$n.'</td>';
- }
- echo '</tr>';
- }
- ?>
- </table>
- </section>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement