prog8/examples/test.p8

21 lines
344 B
Plaintext
Raw Normal View History

%import textio
main {
2023-09-22 22:34:33 +02:00
ubyte begin = 10
ubyte end = 20
2023-09-19 00:08:17 +02:00
sub start() {
2023-09-22 22:34:33 +02:00
ubyte xx
for xx in begin to end step 3 {
txt.print_ub(xx)
txt.spc()
}
txt.nl()
for xx in end to begin step -3 {
txt.print_ub(xx)
txt.spc()
}
txt.nl()
}
}