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>";
}
?>
Reverse right Half Pyramid in php
Output :-
Related Post :-
square pattern in php
PHP Program to print alphabet pattern Q
PHP program to print Alphabet Pattern K
PHP Program to print Alphabet Pattern R
PHP Program to print Alphabet Pattern A
No comments:
Post a Comment