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 1C Enterprize

Date:07/22/05
Author:Alexey Baranov
URL:n/a
Comments:2
Info:http://www.1c.ru/
Score: (3.34 in 32 votes)
// calling by pressing button on form 
// Alexey Baranov wdayda@yahoo.com
Procedure bottles()
	s = "s";     
	beer = 99;
	While beer<>0 do
		Message(String(beer) + " bottle " + s + " of beer on the wall, " + String(beer) + " bottle" + s +
" of beer."); 
		Message("Take one and pass it around.");
		beer = beer - 1;
		s = ?(beer = 1,"","s");
	EndDo;
	Message("No more bottles of beer on the wall.");
	Message("No more bottles of beer...");
	Message("Go to the story and buy some more...");
	Message("99 bottles of beer.");
EndProcedure

Download Source | Write Comment

Alternative Versions

Comments

>>  Anonymous said on 07/22/05 16:01:54

Anonymous &#1055;&#1072;&#1089;&#1084;&#1072;&#1088;&#1080; &#1082;&#1072;&#1082;&#1091;&#1081;&#1091; &#1061;@#^&#1102; &#1090;&#1099; &#1085;&#1072;&#1087;&#1080;&#1089;&#1072;&#1083;!

>>  alex said on 07/26/05 08:35:16

alex %))

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: