Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Applesoft Basic

(Recursive and self-modifying)

Date:07/21/09
Author:Marinus Oosters
URL:n/a
Comments:1
Info:n/a
Score: (2.82 in 28 votes)
10 A = 99
20 B$ = " BOTTLES"
30 PRINT A;B$;" OF BEER ON THE WALL"
40 PRINT A;B$;" OF BEER"
50 PRINT "TAKE ONE DOWN AND PASS IT AROUND"
55 IF A = 2 THEN POKE 2073, 9
56 IF A <> 2 THEN POKE 2073, 83
60 PRINT A-1;B$;" OF BEER ON THE WALL" : PRINT
70 POKE 2056, PEEK(2056) - 1
80 IF PEEK(2056) = 47 THEN POKE 2055, PEEK(2055) - 1: POKE 2056, 57
90 IF A = 1 THEN POKE 2053, 128: POKE 2054, 58: POKE 2055, 178
100 RUN

Download Source | Write Comment

Alternative Versions

Comments

>>  barrym said on 04/08/10 06:48:12

barrym Okay. Now what you should do is self-modify yourself a proper ending
with a trip to the store!

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: