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 Delcam PowerMILL Macro Language

Date:12/21/11
Author:Vitor Martins Augusto
URL:n/a
Comments:0
Info:http://www.delcam.com
Score: (2.20 in 5 votes)
//
// 99 Bottles for PowerMILL 2012
//
INT Bottles = 99
WHILE Bottles > 1 {
  STRING start_bottles = String(Bottles) + " green bottles sitting on the wall"
  PRINT $start_bottles
  $Bottles = $Bottles - 1
  PRINT "If 1 green bottle should accidentally fall"
  STRING bottles_left = "There will be " + string(Bottles) + " green bottles left sitting on the
wall"
  PRINT $bottles_left
}
STRING start_bottles = String(Bottles) + " green bottle sitting on the wall"
PRINT $start_bottles
PRINT "If 1 green bottle should accidentally fall"
$Bottles = $Bottles - 1
STRING bottles_left = "There will be " + string(Bottles) + " green bottle left sitting on the wall"
PRINT $bottles_left

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: