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