Share Pastebin
Guest
Public paste!

Q

By: a guest | Mar 17th, 2010 | Syntax: None | Size: 0.57 KB | Hits: 32 | Expires: Never
Copy text to clipboard
  1.  
  2. type Program implements Object {
  3.         object Bottle is Integer <- 99;
  4.        
  5.         function main() returns Integer
  6.         {
  7.                 while (Bottle > 0)
  8.                 {
  9.                         System.Console.WriteLine(Bottle, " bottles of beer on the wall,", Bottle, " bottles of beer!")
  10.                         Bottle <- Bottle - 1;
  11.                         System.Console.WriteLine("Take one down and pass it around,", Bottle, " bottles of beer on the wall.")
  12.                 }
  13.                 System.Console.WriteLine("No more bottles of beer on the wall, no more bottles of beer.")
  14.                 System.Console.WriteLine("Go to the store and buy some more, 99 bottles of beer on the wall.")
  15.                 return 0;
  16.         }
  17. }