- 1

Generate the following pattern using php

1 22 333 4444 55555 666666

5th Feb 2021, 5:05 AM
2128 Priya Rani
2128 Priya Rani - avatar
1 Answer
+ 7
for ($i = 1; $i < 7; $i++) { echo str_repeat($i, $i) . ' '; }
5th Feb 2021, 5:50 AM
Igor Makarsky
Igor Makarsky - avatar