Eilučių užpildymas PHP
Naudodami vieną ciklą ir funkciją str_repeat
atspausdinkite tokį piramidę:
x
xx
xxx
xxxx
xxxxx
xxxxxx
xxxxxxx
xxxxxxxx
xxxxxxxxx
xx
xxx
xxxx
xxxxx
xxxxxx
xxxxxxx
xxxxxxxx
xxxxxxxxx
Naudodami vieną ciklą ir funkciją str_repeat
atspausdinkite tokį piramidę:
1
22
333
4444
55555
666666
7777777
88888888
22
333
4444
55555
666666
7777777
88888888
999999999