$ns=4;
for($a=1; $a<=9; $a=$a+2)
{
for($space=1; $space<=$ns; $space++)
{
echo "<br>";
}
for($b=1; $b<=$a; $b++)
{
echo "|";
}
echo "<br>";
$ns--;
}
for($a=1; $a<=9; $a=$a+2)
{
for($space=1; $space<=$ns; $space++)
{
echo "<br>";
}
for($b=1; $b<=$a; $b++)
{
echo "|";
}
echo "<br>";
$ns--;
}
No comments:
Post a Comment