Created
November 18, 2020 13:51
-
-
Save ultramarshall/130c1841a7be7d4b1dd0cd69f2a07318 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function cetak($max) { | |
$bucket = []; | |
for($i = 0; $i < $max; $i++) { | |
array_push($bucket,($i + 1)); | |
for ($j = 0; $j < count($bucket); $j++) { | |
echo $bucket[$j] . " "; | |
} | |
echo "<br>"; | |
} | |
} | |
echo cetak(8); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment