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 BASCOM-AVR

Date:12/26/05
Author:CUBErt
URL:n/a
Comments:1
Info:http://www.mcselec.com/
Score: (2.96 in 27 votes)
Dim beer as integer
beer = 99
Main:
Do
	Print beer ; " bottles of beer on the wall, "; beer ;" bottles of beer."
	beer = beer - 1
	print "Take one down and pass it around, "; beer ; " bottles of beer on the wall."
        wait 1
	if beer = 1 then
		print" 1 bottle of beer on the wall, 1 bottle of beer."
		print "Take one down and pass it around, no more bottles of beer on the wall."	
                wait 1
		print "No more bottles of beer on the wall, no more bottles of beer."
		print "Go to the store and buy some more, 99 bottles of beer on the wall."
		beer = 99
        wait 1
        end if
loop
end

'Tried this on the AtMega32 :)

Download Source | Write Comment

Alternative Versions

Comments

>>  CUBErt said on 01/15/07 15:06:43

CUBErt Main: shoukd offcourse be 'Main:
Stupid me :)

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: