Program to print reverse right Half Pyramid pattern in php
1] Reverse right Half Pyramid in php
Example :-
<?phpfor($i=0;$i<=5;$i++){ for($j=5-$i;$j>=1;$j--) { echo"*";//change only echo ""; value //for example :- 1,d,4,h,9,...etc } echo "<br>";}?>Reverse right Half Pyramid in php
<?php
for($i=0;$i<=5;$i++)
{
for($j=5-$i;$j>=1;$j--)
{
echo"*";
//change only echo ""; value
//for example :- 1,d,4,h,9,...etc
}
echo "<br>";
}
?>
Output :-
1] Reverse right Half Pyramid in php
Example :-
<?php
for($i=0;$i<=5;$i++)
{
for($j=5-$i;$j>=1;$j--)
{
echo"A";
//change only echo ""; value
//for example :- 1,d,4,h,9,...etc
}
echo "<br>";
}
?>
Post a Comment