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;
- $temp = $f;
- $e=9;
- $tmp = $e;
- for($x=1; $x<=$e; $x++)
- {
- for($y=1; $y<=$x; $y++)
- {
- echo " ";
- }
- for($z=$tmp; $z>=1; $z--)
- {
- echo "*";
- }
- for($p=$x; $p<$e; $p++)
- {
- echo "*";
- }
- $tmp--;
- echo "<br />";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement