php program to print left half pyramid star pattern
php program to print left half pyramid
php program to print left half pyramid
Example :-
<?php
for($i=1;$i<=5;$i++)
{
for($j=4;$j>=$i;$j--)
{
echo " ";
}
for($k=1;$k<=$i;$k++)
{
echo '*';
//change only value of the
//echo' *';
//for example :- 1,s,q,h,a,A....etc
}
echo '<br>';
}
?>
php program to print left half pyramid
Output:-
Related Post :-
Post a Comment