Counting

This program lists the numbers from 0 to 10 and exits.

Program


---

Counting Program

Lists the numbers from 0 to 10.

---


prog_vars =

d/count 0

prog_vars.


prog_start =

print "Counting Program Start"

prog_start.


prog_loop =

-- Main program loop

-- Increment the value of the /count var by 1

inc /count

-- Display the new count

print "Count /count"

-- Decide if it's time to exit

any /count >= 10 -> exitprog


prog_loop.

prog_stop =

print "Bye"

prog_stop.