- <html>
- <head>
- <title> Puissance de 2 </title>
- <meta charset="utf-8">
- <style>
- table, th, td {
- text-align: center;
- border: 1px solid black;
- padding: 15px;
- border-collapse: collapse;
- }
- </style>
- </head>
- <body>
- <h1> Puissances croissantes de 2</h1>
- <hr>
- <?php
- echo "<table>";
- echo "<tr>";
- echo "<th>n</th>";
- for($i=0;$i<12;$i++){
- echo "<td>$i</td>";
- }
- echo "</tr><tr>";
- echo "<th>2<sup>n</sup></th>";
- for($i=0;$i<12;$i++){
- echo "<td>";
- echo 2 ** $i;
- echo "</td>";
- }
- echo "</tr></table>";
- ?>
- </body>
- </html>
-
-
-