Elliott C. Back: Technology FTW!

“Bears in the bed” in Basic

Posted in Code, Humour, Music by Elliott Back on March 30th, 2005.

10 let x=5
20 if x>1 then let b$=”bears” else let b$=”bear”
30 if x>1 then let s$=”roll over, roll over” else let s$=”I’m sleepy”
40 print x, b$, “in the bed, and the little one said”, s$
50 if x=1 then goto 90
60 print “So they all rolled over, and one fell out.”
70 let x=x-1
80 goto 20
90 end

Via www.livejournal.com/community/reformat_songs/19032.html and www.boingboing.net/2005/03/29/songs_as_basic_progr.html

This entry was posted on Wednesday, March 30th, 2005 at 2:25 am and is tagged with bears, goto. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

Viewing 1 Comment

 

Trackbacks

(Trackback URL)

close Reblog this comment
blog comments powered by Disqus