99_Bottles_of_Beer_computer_program 99_Bottles_of_Beer_computer_program

99 Bottles of Beer computer program - Definition

Related Words: Accountant, Actuary, Adder, Analyzer, Bookkeeper, Calculator, Coder, Compiler, Decoder, Detector, Differential

A 99 Bottles of Beer computer program is a common programming exercise. The idea is to program a routine writing out the full lyrics of "99 Bottles of Beer". Example in C++:

int main() {
  int i;  
  
  for(i = 99; i > 0; --i) {
    cout i << " bottles of beer on the wall\n";
    cout i << " bottles of beer!\n";
    cout "Take one down, pass it around. " << (i-1) << " bottles of beer on the wall!\n"
  }
  return 0;
}

Related topics

External links

Example Usage of computer

Joshuaai: Time to play some DS whilst I wait for computer to scan I guess.
EdzJohnson: Just ordered my NEW computer! =D
NatoriousFAT: @chrisw10 And Google Reader is great for RSS, because you can access your feeds on any computer (or phone) with a web browser.
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.