Задача 1 update - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of Задача 1 update.php
- <?php
- $rangeList = range(1,100);
- $result = [];
- for ($i=1;!empty($rangeList);$i++) {
- $result[] = array_splice($rangeList, 0, $i);
- }
- foreach($result as $rowList) {
- echo implode(" ", $rowList) . "\n";
- }
- //последнюю строку оставляю как есть, т.к. не было никаких инструкций по ней
File Description
- Задача 1 update
- PHP Code
- 26 Aug-2022
- 348 Bytes
You can Share it:
Latest PHP Pastes