fork(1) download
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>Raiz quadradas e cubos</title>
  5. </head>
  6.  
  7. <body>
  8. <table border="1">
  9. <tr>
  10. <th>n</th>
  11. <th>Cube</th>
  12. <th>Square root</th>
  13. </tr>
  14. <?php for($i=1; $i<=10; $i++) { ?>
  15. <tr>
  16. <td><?php echo $i; ?></td>
  17. <td><?php echo "$i^3 = " . pow($i, 3); ?></td>
  18. <td><?php echo "√$i = " . sqrt($i); ?></td>
  19. </tr>
  20. <?php } ?>
  21. </table>
  22. </body>
  23. </html>
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
<!doctype html>
<html>
  <head>
    <title>Raiz quadradas e cubos</title>
  </head>

  <body>
    <table border="1">
      <tr>
        <th>n</th>
        <th>Cube</th>    
        <th>Square root</th>
      </tr>
              <tr>
          <td>1</td>
          <td>1^3 = 1</td>
          <td>√1 = 1</td>
        </tr>
              <tr>
          <td>2</td>
          <td>2^3 = 8</td>
          <td>√2 = 1.4142135623731</td>
        </tr>
              <tr>
          <td>3</td>
          <td>3^3 = 27</td>
          <td>√3 = 1.7320508075689</td>
        </tr>
              <tr>
          <td>4</td>
          <td>4^3 = 64</td>
          <td>√4 = 2</td>
        </tr>
              <tr>
          <td>5</td>
          <td>5^3 = 125</td>
          <td>√5 = 2.2360679774998</td>
        </tr>
              <tr>
          <td>6</td>
          <td>6^3 = 216</td>
          <td>√6 = 2.4494897427832</td>
        </tr>
              <tr>
          <td>7</td>
          <td>7^3 = 343</td>
          <td>√7 = 2.6457513110646</td>
        </tr>
              <tr>
          <td>8</td>
          <td>8^3 = 512</td>
          <td>√8 = 2.8284271247462</td>
        </tr>
              <tr>
          <td>9</td>
          <td>9^3 = 729</td>
          <td>√9 = 3</td>
        </tr>
              <tr>
          <td>10</td>
          <td>10^3 = 1000</td>
          <td>√10 = 3.1622776601684</td>
        </tr>
          </table>
  </body>
</html>