php program to print inverted left half pyramid pattern
php program to print inverted left half pyramid
php program to print inverted left half pyramid
Example :-
<?php
for($i=1;$i<=6;$i++)
{
for($j=1; $j<=$i;$j++)
{
echo " ";
}
for($l=5;$l>=$i;$l--)
{
echo '*';
}
echo '<br>';
}
?>
php program to print inverted left half pyramid
Output:-
Related post :-
Post a Comment