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>";
}
?>
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>";
}
?>
0Comments
Thanks you for commenting your questions. I will see question and respond you.