xxxxxxxxxx
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
<?php
for ($i=1; $i<=5; $i++)
{
for ($j=1; $j<=$i; $j++)
{
print $i." ";
}
print "\n";
}
?>
xxxxxxxxxx
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
<?php
for ($i=1; $i<=5; $i++)
{
for ($j=1; $j<=$i; $j++)
{
print $i." ";
}
print "\n";
}
?>