This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
microgentambly/examples/99.mga

18 lines
452 B
Plaintext
Raw Permalink Normal View History

# 99 bottles of beer on the wall - https://en.wikipedia.org/wiki/99_Bottles_of_Beer#References_in_computer_science
INT i
# declare counter "i" as an integer
SET i 99
# set i to 99
:beering
# main loop
OUT bottles of beer on the wall, $i$ bottles of beer\n
# Print line 1
2021-09-29 18:48:54 +02:00
DEC i 1
# decrease i
2021-09-29 20:41:35 +02:00
OUT Take one down and pass it around, $i$ bottles of beer on the wall\n
# Print line 2
JME beering i 1
# loop until 1
2021-09-28 22:35:18 +02:00
END
#end