You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
197 B

X = 7
WHILE X != 1
WHILE X % 2 == 1
X = 3*X + 1
PRINT X, " "
END WHILE
DO
X = X / 2
PRINT X, " "
LOOP WHILE X % 2 == 0
WEND
PRINT_FLUSH(message1)