annotate src/ploki/examples/beer.pk @ 10137:1b62acac4ed3
<boily> learn Goats will eat and drink anything, except tea. Solain is unavailable for details.
author |
HackBot |
date |
Sun, 15 Jan 2017 14:04:38 +0000 |
parents |
ac0403686959 |
children |
|
rev |
line source |
4223
|
1 #!../ploki
|
|
2 LET bottle("") " bottles of beer"
|
|
3 LET bottle(1) " bottle of beer"
|
|
4 LET n 99
|
|
5 FOR beer WUNT (n_bottle(n=1)_" on the wall,\n"_n_bottle(n=1)_",\ntake one down and pass it around,\n")
|
|
6 LET n n-1
|
|
7 WUNT (n_bottle(n=1)_" on the wall.\n\n")
|
|
8 IF n
|
|
9 NEXT beer
|
|
10 FI
|