INPUT "vvedite systemu P ", p
FOR i = 0 TO p - 1
FOR j = 0 TO p - 1
r = i + j
IF r > p THEN r = 10 + r - p
PRINT i; "+"; j; "="; r;
NEXT
PRINT
NEXT
INPUT "vvedite systemu P ", p
FOR i = 0 TO p - 1
FOR j = 0 TO p - 1
r = i + j
IF r > p THEN r = 10 + r - p
PRINT i; "+"; j; "="; r;
NEXT
PRINT
NEXT