[ create a new paste ] login | about

Link: http://codepad.org/mwtYDjrr    [ raw code | output | fork ]

PHP, pasted on Jul 21:
1
2
3
4
5
6
7
8
9
10
11
12
<html>
  <head>
    <title>Anos Bissextos</title>
  </head>
  <body>
    <?php
      for ($leap = 2004; $leap < 2050; $leap = $leap + 4) {
        echo "<p>$leap</p>";
      }
    ?>
  </body>
</html>


Output:
1
2
3
4
5
6
7
<html>
  <head>
    <title>Anos Bissextos</title>
  </head>
  <body>
    <p>2004</p><p>2008</p><p>2012</p><p>2016</p><p>2020</p><p>2024</p><p>2028</p><p>2032</p><p>2036</p><p>2040</p><p>2044</p><p>2048</p>  </body>
</html>


Create a new paste based on this one


Comments: