1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-25 21:29:25 +00:00
millfork/examples/crossplatform/fizzbuzz.mfk

23 lines
421 B
Plaintext
Raw Normal View History

// 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(' ')
}
2019-08-06 10:59:05 +00:00
while(true){}
}