This commit is contained in:
2025-05-28 14:19:58 +03:00
parent fdd30a8854
commit c001ccb12a
9 changed files with 565 additions and 21 deletions

View File

@@ -0,0 +1,7 @@
BEGIN
x := 0;
write(x++);
write(x);
write(++x);
write(x)
END

View File

@@ -0,0 +1,6 @@
BEGIN
i := 1;
j := 2;
IF i < --j THEN WRITE(100) ELSE WRITE(-100) FI
END

View File

@@ -0,0 +1,13 @@
BEGIN
y := x++;
write(y);
write(x);
y := 10 - --x;
write(y);
write(x);
y := 10 -++x;
write(y);
write(x)
END

View File

@@ -0,0 +1,5 @@
BEGIN
x := 10;
y := 10 - --x; /* Корректно: минус и декремент разделены пробелом */
y := 10 ---x; /* Некорректно: три минуса подряд */
END