1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-27 04:29:34 +00:00
millfork/examples/crossplatform/fizzbuzz.mfk
2019-08-06 12:59:05 +02:00

23 lines
421 B
Plaintext

// memorize this code for your next interview for a Millfork developer position
import stdio
void main() {
byte i
for i,1,to,100 {
if i %% 15 == 0 {
putstrz("fizzbuzz"z)
} else if i %% 3 == 0 {
putstrz("fizz"z)
} else if i %% 5 == 0 {
putstrz("buzz"z)
} else {
putword(i)
}
putchar(' ')
}
while(true){}
}