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 AlgoBox

(Simple loop)

Date:11/13/11
Author:Jio15
URL:n/a
Comments:0
Info:http://www.xm1math.net/algobox/
Score: (2.00 in 5 votes)

1   VARIABLES

2     nb EST_DU_TYPE NOMBRE

3     strophe EST_DU_TYPE CHAINE

4   DEBUT_ALGORITHME

5     nb PREND_LA_VALEUR 99

6     TANT_QUE (nb>1) FAIRE

7       DEBUT_TANT_QUE

8       strophe PREND_LA_VALEUR nb.toString()+" bottles of beer on the wall, "+nb.toString()+"
bottles of beer."

9       AFFICHER strophe

10      nb PREND_LA_VALEUR nb-1

11      strophe PREND_LA_VALEUR "Take one down and pass it around, "+nb.toString()+" bottles of beer
on the wall."

12      AFFICHER strophe

13      AFFICHER " "

14      FIN_TANT_QUE

15    AFFICHER "1 bottle of beer on the wall, 1 bottle of beer."

16    AFFICHER "Take one down and pass it around, no more bottles of beer on the wall."

17    AFFICHER " "

18    AFFICHER "No more bottles of beer on the wall, no more bottles of beer."

19    AFFICHER "Go to the store and buy some more, 99 bottles of beer on the wall."

20  FIN_ALGORITHME

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: