Advertisement
Thelz

nestedForphp

Oct 2nd, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.14 KB | None | 0 0
  1. <?php
  2.     $jumlah = 5;
  3.  
  4.     for ($i = 1; $i <= $jumlah; $i++){
  5.        
  6.         for ($j = 1; $j <= $i; $j++){
  7.             echo "x";
  8.         }
  9.         echo '<br>';
  10.     }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement