Language Zim
| Date: | 05/30/05 |
| Author: | Rodrigo Euzébio Nunes |
| URL: | n/a |
| Comments: | 2 |
| Info: | n/a |
| Score: |
%% Zim Version 7.11
%% Rodrigo Euzébio Nunes
Procedure BeerSong() Local(b)
out '99 bottles of beer on the wall'
out '99 bottles of beer'
out 'You take one down and pass it around'
let b= 98
While b > 2
Out $Concat($Trim(b), ' bottles of beer on the wall.')
Out ''
Out $Concat($Trim(b), ' bottles of beer on the wall')
Out $Concat($Trim(b), ' bottles of beer')
Out 'You take one down and pass it around'
let b= b-1
EndWhile
let b= 1
out $Concat( $Trim(b), ' bottle of beer on the wall')
out ''
out $Concat( $Trim(b), ' bottle of beer')
out 'You take one down and pass it around'
out 'No bottles of beer on the wall!'
EndProcedure
Download Source | Write Comment
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!
Comments
Dan Davis
North American 905-855-5151 (Toronto, Canada ).
Rodrigo E. Nunes
South American, Brazil