Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $rows = 10;
- $cols = 10;
- echo '<table border="2">';
- for ($tr=1; $tr<=$rows; $tr++){
- echo '<tr>';
- for ($td=1; $td<=$cols; $td++){
- echo '<td>'. $tr*$td .'</td>';
- }
- echo '</tr>';
- }
- echo '</table>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment