You are on page 1of 1

Nama :

Lukman Mutoif

Kelas :

TI 12 D

NIM :

12.11.0164

Screenshoot :

Code :
<form method="post" action="1.php">
angka 1 : <input type="text" name="1"/><br/>
angka 2 : <input type="text" name="2"/><br/>
<input type="submit" value="submit"/><br/>
<?php $satu=$_POST['1']; $dua=$_POST['2']; if($satu<$dua){ for($i=$soatu; $i<$dua; $i++){ echo
"$i<br/>"; } ; }
else { for($i=$satu; $i>$dua; $i--){ echo "$i<br/>"; } } ?>

You might also like