Wrote this in the past 10 mins.
As far as I can recall, it would actually work for a spccy.
However, that was long long ago in a galaxy far far away.
So...
corrections?
Spot the bugs in the code... please:
10 Let X = 10
20 For X = 10 to 3 goto 30; else goto 120
30 print x" green bottles, standing on the wall"
40 print x" green bottles, standing on the wall"
50 print "and if one green bottle should accidently fall"
60 print "There'll be "(x-1)" green bottles, standing on the wall"
70 let x=x-1
80 goto 20
120 For X = 2 goto 130; else goto 220
130 print x" green bottles, standing on the wall"
140 print x" green bottles, standing on the wall"
150 print "and if one green bottle should accidently fall"
160 print "There'll be "(x-1)" green bottle, standing on the wall"
170 let x = x-1
180 goto 120
220 For x = 1 goto 230; else goto 300
230 print x" green bottle, standing on the wall"
240 print x" green bottle, standing on the wall"
250 print "and if one green bottle should accidently fall"
260 print "There'll be no green bottles, standing on the wall"
261 print " "
262 print "Thankyeaueiuowaiouuwverwymuch"
263 print " "
270 let x = x-1
280 goto 220
300 end
((Specifically, I can't remember if "let x =" needs some quotation marks... but mainly as I'm talking in a language I haven't spoken for nearly 20 years would like to know if anyone else can deny or confirm...))
(((also is "end" a correct and necessary command or superfluous?))))
Thanks for helping, and equally thanks for pretending you never saw this (I have a rep after all...)
As far as I can recall, it would actually work for a spccy.
However, that was long long ago in a galaxy far far away.
So...
corrections?
Spot the bugs in the code... please:
10 Let X = 10
20 For X = 10 to 3 goto 30; else goto 120
30 print x" green bottles, standing on the wall"
40 print x" green bottles, standing on the wall"
50 print "and if one green bottle should accidently fall"
60 print "There'll be "(x-1)" green bottles, standing on the wall"
70 let x=x-1
80 goto 20
120 For X = 2 goto 130; else goto 220
130 print x" green bottles, standing on the wall"
140 print x" green bottles, standing on the wall"
150 print "and if one green bottle should accidently fall"
160 print "There'll be "(x-1)" green bottle, standing on the wall"
170 let x = x-1
180 goto 120
220 For x = 1 goto 230; else goto 300
230 print x" green bottle, standing on the wall"
240 print x" green bottle, standing on the wall"
250 print "and if one green bottle should accidently fall"
260 print "There'll be no green bottles, standing on the wall"
261 print " "
262 print "Thankyeaueiuowaiouuwverwymuch"
263 print " "
270 let x = x-1
280 goto 220
300 end
((Specifically, I can't remember if "let x =" needs some quotation marks... but mainly as I'm talking in a language I haven't spoken for nearly 20 years would like to know if anyone else can deny or confirm...))
(((also is "end" a correct and necessary command or superfluous?))))
Thanks for helping, and equally thanks for pretending you never saw this (I have a rep after all...)