From aryx, 6 Years ago, written in PHP.
Embed
  1. <!DOCTYPE html>
  2. <!--
  3. To change this license header, choose License Headers in Project Properties.
  4. To change this template file, choose Tools | Templates
  5. and open the template in the editor.
  6. -->
  7. <html>
  8.     <head>
  9.         <meta charset="UTF-8">
  10.         <title>Szorzotabla</title>
  11.        
  12.         <style>
  13.            
  14.             body {
  15.                 font-family:monospace;
  16.                 background-color:black;
  17.                 color:white;
  18.             }
  19.            
  20.             table {
  21.                 border-collapse:collapse;
  22.                 border:1px solid gray;
  23.             }
  24.            
  25.             td {
  26.                 border:1px solid gray;
  27.                 padding: 10px;
  28.             }
  29.            
  30.         </style>
  31.        
  32.     </head>
  33.     <body>
  34.        
  35.         <table>
  36.             <tr>
  37.                 <?php
  38.                 for ($x = 1; $x <= 10; $x++) {
  39.                     echo "<td>";
  40.                     for ($y = 1; $y <= 10; $y++) {
  41.                         echo $x . "*" . $y . "=" . $x*$y . "<br />\n";
  42.                     }
  43.                     echo "</td>";
  44.                 }
  45.                 ?>
  46.             </tr>
  47.         </table>
  48.        
  49.     </body>
  50. </html>
  51.