print * in Pyramid in php

technical talkiess
0

print * in Pyramid in php  using for loop




 <?php

for($i=0;$i<=4;$i++){

for($j=0;$j<=$i;$j++){

    echo "* \n";

    }

    echo "<br>";

}

?> 

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)