Ad

php program to print left half pyramid star pattern

 php program to  print left half pyramid 

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 "&nbsp;&nbsp;";
}
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:- 

php program to  print left half pyramid


Related  Post :-

html table tag

html id Attribute

css column gap property

No comments

Powered by Blogger.