codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <iostream> #define B " Bottle" #define C " of beer" #define D "no more "B"s"C #define W " on the wall" #define T "\nTake one down and pass it around, " int main(int argc, char **argv){ for(int i=99;i>1;i--) printf("%d"B"s"C""W", %d"B"s."T"%d"B""W".\n\n",i,i,(i-1)); printf("1"B""C""W", 1"B""C"."T""D""W".\n\n"D""W", "D".\nGo to the store and buy some more, 99"B""W".\n"); }
Private
[
?
]
Run code
Submit