• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!



Page history last edited by Mike Leishman 16 years, 6 months ago

10 Green Bottles - by teachers

Original code by PSW modified by Mike Leishman (but not tested)
to 10bottles
for [i 10 1 -1] [
    print se :i [green bottle(s) hanging on the wall]
    print se :i [green bottle(s) hanging on the wall]
    print [If one green bottle should accidently fall]
    print se  [There would be] (:i - 1) [bottle(s) hanging on the wall]] end

Comments (0)

You don't have permission to comment on this page.