Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $soal = 'Soal 2';
- include '../functions.php';
- include 'tplLogic2.php';
- if (isset($_POST)) {
- $r = $_POST['range'];
- echo "<table>";
- for($y=1;$y<=$r;$y++) {
- echo "<tr>";
- for($x=1;$x<=$r;$x++) {
- if ($x == $r-($y-1)) {
- td($x*2-2);
- } else {
- td();
- }
- }
- echo "</tr>";
- }
- echo "</table>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement