Курсивом и цветом выделены более трудные задачи.
p = false; e = (x % 2 == 0); if (!p && x > 100) p = true; endif
a = range(1, 101); s = 0; for (i = 0; i < n; i = i + 1) s = s + a[i]; endfor
a = range(1, 101); s = 0; for (x in a) s = s + x; endfor
a = [1..5]; # a == [1, 2, 3, 4, 5] b = [1, 3..10]; # b == [1, 3, 5, 7, 9] c = [15, 12..1]; # c == [15, 12, 9, 6, 3]
a = [x for x in range(1, 6)]; # a == [1, 2, 3, 4, 5] b = [[x, x^2, x^3] for x in range(1, 6)]; # b == [[1, 1, 1], [2, 4, 8], [3, 9, 27], [4, 16, 64], [5, 25, 125]] c = [x for x in range(1, 10) if (x%3 != 0)]; # c == [1, 2, 4, 5, 7, 8]
while (x > 0) while (y < 100) . . . if (x == y) goto LExit; . . . endwhile . . . endwhile LExit: ;
switch (произвольное выражение) case const1: ... endcase case const2: ... endcase . . . default: ... enddefault endswitch