\[\boxed{\mathbf{Страница}\mathbf{\ 79}\mathbf{.}\mathbf{\ }}\]
Добавить текст Вернуть оригинал\[\boxed{\mathbf{217}\mathbf{.}\mathbf{\ }}\]
Добавить текст Вернуть оригинал\[\text{while}\] |
\[Результат\ \] \[работы\] |
\[\text{for}\] |
---|---|---|
\[x ≔ 1\] \[while\ x < \ = 5\ do\] \[\text{\ \ \ \ \ begin}\] \[\text{\ \ \ \ \ \ \ \ \ \ writeln\ }(x)\] Добавить текст Вернуть оригинал\[\ \ \ \ \ \ \ \ \ \ x ≔ x + 1\] \[\text{\ \ \ \ \ end}\] |
\[1\] \[2\] \[3\] \[4\] \[5\] |
\[for\ x\ : = 1\ to\ 5\ do\] \[\ \ \ \ \ writeln\ (x)\] |
\[x ≔ - 2\] \[while\ x < \ = 2\ do\] \[\text{\ \ \ \ \ begin}\] \[\ \ \ \ \ \ \ \ \ \ y ≔ abs(x)\] \[\text{\ \ \ \ \ \ \ \ \ \ writeln\ }(y)\] Добавить текст Вернуть оригинал\[\ \ \ \ \ \ \ \ \ \ y ≔ y - 1\] \[\text{\ \ \ \ \ end}\] |
\[2\] \[1\] \[0\] \[1\] \[2\] |
\[for\ x ≔ - 2\ to\ 2\ do\] \[\text{\ \ \ \ \ begin\ }\] \[\ \ \ \ \ \ \ \ \ \ y ≔ abs(x)\] \[\text{\ \ \ \ \ \ \ \ \ \ writeln\ }(y)\] Добавить текст Вернуть оригинал\(\text{end}\) |
\[x ≔ 10\] \[while\ x > \ = 5\ do\] \[\text{\ \ \ \ \ begin}\] \[\text{\ \ \ \ \ \ \ \ \ \ writeln\ }(x)\] Добавить текст Вернуть оригинал\[\ \ \ \ \ \ \ \ \ \ x ≔ x - 1\] \[\text{\ \ \ \ \ end}\] |
\[10\] \[9\] \[8\] \[7\] \[6\] \[5\] |
\[for\ x ≔ 10\ downto\ 5\ do\] \[\text{\ \ \ \ \ begin\ }\] \[\text{\ \ \ \ \ \ \ \ \ \ writeln\ }(x)\] Добавить текст Вернуть оригинал\(\text{end}\) |
\[x ≔ 5\] \[while\ x > \ = 0\ do\] \[\text{\ \ \ \ \ begin}\] \[\ \ \ \ \ \ \ \ \ \ y ≔ x*x\] \[\text{\ \ \ \ \ \ \ \ \ \ writeln\ }(y)\] Добавить текст Вернуть оригинал\[\ \ \ \ \ \ \ \ \ \ x ≔ x - 1\] \[\text{\ \ \ \ \ end}\] |
\[25\] \[16\] \[9\] \[4\] \[1\] \[0\] |
\[for\ x ≔ 5\ \ downto\ 0\ do\] \[\text{\ \ \ \ \ begin\ }\] \[\ \ \ \ \ \ \ \ \ \ y ≔ x*x\] \[\text{\ \ \ \ \ \ \ \ \ \ writeln\ }(y)\] Добавить текст Вернуть оригинал\(\text{end}\) |