6 Решите задачи if2 и if3 из встроенного задачника.

Приложения:

Ответы

Ответ дал: samoilenkoartem2019
16

Ответ:

if2

uses robot;

begin

task('if2');

paint;

up;

if wallfromup then

paint;

down;

down;

if wallfromdown then

paint;

up;

right;

if wallfromright then

paint;

left;

left;

if wallfromleft then

paint;

right;

end.

if3

uses robot;

begin

task('if3');

if freeFromLeft then

left

else

right;

if freeFromUp then up

else

down;

paint;

end.

Объяснение: В ответе все наглядно понятно

Вас заинтересует