Pyramid

<?php  
$l=5;
for($i=$l;$i>=1;$i--)
 {
 for($k=$i;$k>=1;$k--)
 {	 
 echo  "* &nbsp;&nbsp;"; 
 }
 echo "<br />"; 
 } 

 ?>

 
OUTPUT
[insert_php]
$l=5;
for($i=$l;$i>=1;$i–)
{
for($k=$i;$k>=1;$k–)
{
echo “*   “;
}
echo “
“;
}

[/insert_php]

(Visited 152 times, 1 visits today)
Share with Friends :
Written by: