<\?php
for ($size = 1; $size <= 5; $size++)
{
for ($j = 1; $j <= 5 -$size; $j++)
{
echo " ";
}
for ($j = 1; $j <= 2*$size - 1; $j++)
{
echo("*");
}
echo "<\br>";
}
?>
for ($size = 1; $size <= 5; $size++)
{
for ($j = 1; $j <= 5 -$size; $j++)
{
echo " ";
}
for ($j = 1; $j <= 2*$size - 1; $j++)
{
echo("*");
}
echo "<\br>";
}
?>
5 comments:
one more easy way to print triangle....
";
}
?>
one more easy way to print triangle....
";
}
?>
one more easy way to print triangle....
";
}
?>
one more easy way to print triangle....
";
}
?>
one more easy way to print triangle....
";
}
?>
Post a Comment