|
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. |
|