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 HP 9825A Calculator

Date:04/20/05
Author:Courtesy Tom Stepleton
URL:n/a
Comments:0
Info:n/a
Score: (2.80 in 15 votes)
Courtesy Tom Stepleton.  Replace "prt" with "dsp" to output song to the display instead of the
printer.

0: for I=100 to 1 by -1
1: dim A$[5];str(I)->A$
2: prt A$&" bottles of beer on the wall"
3: prt A$&" bottles of beer"
4: prt "Take one down!"
5: prt "Pass it around!"
6: I-1->J
7: if J=0;prt "No more bottles of beer on the wall!";end
8: prt str(J)&" bottles of beer on the wall!"
9: next I

Download Source | Write Comment

Alternative Versions

Comments

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: