Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title> Latihan PHP </title></head>
- <body>
- <?php
- $f=9;
- for($a=1; $a<=$f; $a++)
- {
- for($b=1; $b<$a; $b++)
- {
- echo "*";
- }
- echo "<br />";
- }
- for($c=1; $c<=$f; $c++)
- {
- for($d=$c; $d<=$f; $d++)
- {
- echo "*";
- }
- echo "<br />";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement