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.
22 lines
319 B
22 lines
319 B
1 year ago
|
x = 0
|
||
|
|
||
|
start:
|
||
|
x = x + 1
|
||
|
IF x % 3 == 0 THEN
|
||
|
IF x % 5 == 0 THEN
|
||
|
PRINT "fizzbuzz"
|
||
|
ELSE
|
||
|
PRINT "fizz"
|
||
|
END IF
|
||
|
ELSE
|
||
|
IF x % 5 == 0 THEN
|
||
|
PRINT "buzz"
|
||
|
ELSE
|
||
|
PRINT x
|
||
|
END IF
|
||
|
END IF
|
||
|
|
||
|
PRINT_FLUSH(message1)
|
||
|
|
||
|
GOTO start
|