Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title>Multiplication of integers</title></head>
- <body>
- <center>
- <font size="6"><b>Multiplication of integers from 1*1 to 9*9</b></font><hr>
- <?
- echo "<table border=2 width=45%>";
- for ($a = 1; $a <= 10; $a++ ) {
- $b=1;
- echo "<tr>";
- if($a==1)
- echo "<td bgcolor=#3399fe >X</td>";
- else{
- $b=$a-1;
- echo "<td>$b</td>";
- }
- echo "<td>".$b ."</td>";
- for ( $c = 2; $c <= 9; $c++ ) {
- echo "<td>".$b * $c."</td>";
- }
- echo "</tr>";
- }
- echo "</table>";
- ?>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement