[ create a new paste ] login | about

Link: http://codepad.org/kkn6FIG5    [ raw code | output | fork ]

C++, pasted on Jul 6:
1
2
3
4
5
6
7
8
9
10
#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;) printf("%d"B"s"C""W", %d"B"s."T"%d"B""W".\n\n",i,i,i);
   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");
}


Output:
98 Bottles of beer on the wall, 98 Bottles.
Take one down and pass it around, 98 Bottle on the wall.

97 Bottles of beer on the wall, 97 Bottles.
Take one down and pass it around, 97 Bottle on the wall.

96 Bottles of beer on the wall, 96 Bottles.
Take one down and pass it around, 96 Bottle on the wall.

95 Bottles of beer on the wall, 95 Bottles.
Take one down and pass it around, 95 Bottle on the wall.

94 Bottles of beer on the wall, 94 Bottles.
Take one down and pass it around, 94 Bottle on the wall.

93 Bottles of beer on the wall, 93 Bottles.
Take one down and pass it around, 93 Bottle on the wall.

92 Bottles of beer on the wall, 92 Bottles.
Take one down and pass it around, 92 Bottle on the wall.

91 Bottles of beer on the wall, 91 Bottles.
Take one down and pass it around, 91 Bottle on the wall.

90 Bottles of beer on the wall, 90 Bottles.
Take one down and pass it around, 90 Bottle on the wall.

89 Bottles of beer on the wall, 89 Bottles.
Take one down and pass it around, 89 Bottle on the wall.

88 Bottles of beer on the wall, 88 Bottles.
Take one down and pass it around, 88 Bottle on the wall.

87 Bottles of beer on the wall, 87 Bottles.
Take one down and pass it around, 87 Bottle on the wall.

86 Bottles of beer on the wall, 86 Bottles.
Take one down and pass it around, 86 Bottle on the wall.

85 Bottles of beer on the wall, 85 Bottles.
Take one down and pass it around, 85 Bottle on the wall.

84 Bottles of beer on the wall, 84 Bottles.
Take one down and pass it around, 84 Bottle on the wall.

83 Bottles of beer on the wall, 83 Bottles.
Take one down and pass it around, 83 Bottle on the wall.

82 Bottles of beer on the wall, 82 Bottles.
Take one down and pass it around, 82 Bottle on the wall.

81 Bottles of beer on the wall, 81 Bottles.
Take one down and pass it around, 81 Bottle on the wall.

80 Bottles of beer on the wall, 80 Bottles.
Take one down and pass it around, 80 Bottle on the wall.

79 Bottles of beer on the wall, 79 Bottles.
Take one down and pass it around, 79 Bottle on the wall.

78 Bottles of beer on the wall, 78 Bottles.
Take one down and pass it around, 78 Bottle on the wall.

77 Bottles of beer on the wall, 77 Bottles.
Take one down and pass it around, 77 Bottle on the wall.

76 Bottles of beer on the wall, 76 Bottles.
Take one down and pass it around, 76 Bottle on the wall.

75 Bottles of beer on the wall, 75 Bottles.
Take one down and pass it around, 75 Bottle on the wall.

74 Bottles of beer on the wall, 74 Bottles.
Take one down and pass it around, 74 Bottle on the wall.

73 Bottles of beer on the wall, 73 Bottles.
Take one down and pass it around, 73 Bottle on the wall.

72 Bottles of beer on the wall, 72 Bottles.
Take one down and pass it around, 72 Bottle on the wall.

71 Bottles of beer on the wall, 71 Bottles.
Take one down and pass it around, 71 Bottle on the wall.

70 Bottles of beer on the wall, 70 Bottles.
Take one down and pass it around, 70 Bottle on the wall.

69 Bottles of beer on the wall, 69 Bottles.
Take one down and pass it around, 69 Bottle on the wall.

68 Bottles of beer on the wall, 68 Bottles.
Take one down and pass it around, 68 Bottle on the wall.

67 Bottles of beer on the wall, 67 Bottles.
Take one down and pass it around, 67 Bottle on the wall.

66 Bottles of beer on the wall, 66 Bottles.
Take one down and pass it around, 66 Bottle on the wall.

65 Bottles of beer on the wall, 65 Bottles.
Take one down and pass it around, 65 Bottle on the wall.

64 Bottles of beer on the wall, 64 Bottles.
Take one down and pass it around, 64 Bottle on the wall.

63 Bottles of beer on the wall, 63 Bottles.
Take one down and pass it around, 63 Bottle on the wall.

62 Bottles of beer on the wall, 62 Bottles.
Take one down and pass it around, 62 Bottle on the wall.

61 Bottles of beer on the wall, 61 Bottles.
Take one down and pass it around, 61 Bottle on the wall.

60 Bottles of beer on the wall, 60 Bottles.
Take one down and pass it around, 60 Bottle on the wall.

59 Bottles of beer on the wall, 59 Bottles.
Take one down and pass it around, 59 Bottle on the wall.

58 Bottles of beer on the wall, 58 Bottles.
Take one down and pass it around, 58 Bottle on the wall.

57 Bottles of beer on the wall, 57 Bottles.
Take one down and pass it around, 57 Bottle on the wall.

56 Bottles of beer on the wall, 56 Bottles.
Take one down and pass it around, 56 Bottle on the wall.

55 Bottles of beer on the wall, 55 Bottles.
Take one down and pass it around, 55 Bottle on the wall.

54 Bottles of beer on the wall, 54 Bottles.
Take one down and pass it around, 54 Bottle on the wall.

53 Bottles of beer on the wall, 53 Bottles.
Take one down and pass it around, 53 Bottle on the wall.

52 Bottles of beer on the wall, 52 Bottles.
Take one down and pass it around, 52 Bottle on the wall.

51 Bottles of beer on the wall, 51 Bottles.
Take one down and pass it around, 51 Bottle on the wall.

50 Bottles of beer on the wall, 50 Bottles.
Take one down and pass it around, 50 Bottle on the wall.

49 Bottles of beer on the wall, 49 Bottles.
Take one down and pass it around, 49 Bottle on the wall.

48 Bottles of beer on the wall, 48 Bottles.
Take one down and pass it around, 48 Bottle on the wall.

47 Bottles of beer on the wall, 47 Bottles.
Take one down and pass it around, 47 Bottle on the wall.

46 Bottles of beer on the wall, 46 Bottles.
Take one down and pass it around, 46 Bottle on the wall.

45 Bottles of beer on the wall, 45 Bottles.
Take one down and pass it around, 45 Bottle on the wall.

44 Bottles of beer on the wall, 44 Bottles.
Take one down and pass it around, 44 Bottle on the wall.

43 Bottles of beer on the wall, 43 Bottles.
Take one down and pass it around, 43 Bottle on the wall.

42 Bottles of beer on the wall, 42 Bottles.
Take one down and pass it around, 42 Bottle on the wall.

41 Bottles of beer on the wall, 41 Bottles.
Take one down and pass it around, 41 Bottle on the wall.

40 Bottles of beer on the wall, 40 Bottles.
Take one down and pass it around, 40 Bottle on the wall.

39 Bottles of beer on the wall, 39 Bottles.
Take one down and pass it around, 39 Bottle on the wall.

38 Bottles of beer on the wall, 38 Bottles.
Take one down and pass it around, 38 Bottle on the wall.

37 Bottles of beer on the wall, 37 Bottles.
Take one down and pass it around, 37 Bottle on the wall.

36 Bottles of beer on the wall, 36 Bottles.
Take one down and pass it around, 36 Bottle on the wall.

35 Bottles of beer on the wall, 35 Bottles.
Take one down and pass it around, 35 Bottle on the wall.

34 Bottles of beer on the wall, 34 Bottles.
Take one down and pass it around, 34 Bottle on the wall.

33 Bottles of beer on the wall, 33 Bottles.
Take one down and pass it around, 33 Bottle on the wall.

32 Bottles of beer on the wall, 32 Bottles.
Take one down and pass it around, 32 Bottle on the wall.

31 Bottles of beer on the wall, 31 Bottles.
Take one down and pass it around, 31 Bottle on the wall.

30 Bottles of beer on the wall, 30 Bottles.
Take one down and pass it around, 30 Bottle on the wall.

29 Bottles of beer on the wall, 29 Bottles.
Take one down and pass it around, 29 Bottle on the wall.

28 Bottles of beer on the wall, 28 Bottles.
Take one down and pass it around, 28 Bottle on the wall.

27 Bottles of beer on the wall, 27 Bottles.
Take one down and pass it around, 27 Bottle on the wall.

26 Bottles of beer on the wall, 26 Bottles.
Take one down and pass it around, 26 Bottle on the wall.

25 Bottles of beer on the wall, 25 Bottles.
Take one down and pass it around, 25 Bottle on the wall.

24 Bottles of beer on the wall, 24 Bottles.
Take one down and pass it around, 24 Bottle on the wall.

23 Bottles of beer on the wall, 23 Bottles.
Take one down and pass it around, 23 Bottle on the wall.

22 Bottles of beer on the wall, 22 Bottles.
Take one down and pass it around, 22 Bottle on the wall.

21 Bottles of beer on the wall, 21 Bottles.
Take one down and pass it around, 21 Bottle on the wall.

20 Bottles of beer on the wall, 20 Bottles.
Take one down and pass it around, 20 Bottle on the wall.

19 Bottles of beer on the wall, 19 Bottles.
Take one down and pass it around, 19 Bottle on the wall.

18 Bottles of beer on the wall, 18 Bottles.
Take one down and pass it around, 18 Bottle on the wall.

17 Bottles of beer on the wall, 17 Bottles.
Take one down and pass it around, 17 Bottle on the wall.

16 Bottles of beer on the wall, 16 Bottles.
Take one down and pass it around, 16 Bottle on the wall.

15 Bottles of beer on the wall, 15 Bottles.
Take one down and pass it around, 15 Bottle on the wall.

14 Bottles of beer on the wall, 14 Bottles.
Take one down and pass it around, 14 Bottle on the wall.

13 Bottles of beer on the wall, 13 Bottles.
Take one down and pass it around, 13 Bottle on the wall.

12 Bottles of beer on the wall, 12 Bottles.
Take one down and pass it around, 12 Bottle on the wall.

11 Bottles of beer on the wall, 11 Bottles.
Take one down and pass it around, 11 Bottle on the wall.

10 Bottles of beer on the wall, 10 Bottles.
Take one down and pass it around, 10 Bottle on the wall.

9 Bottles of beer on the wall, 9 Bottles.
Take one down and pass it around, 9 Bottle on the wall.

8 Bottles of beer on the wall, 8 Bottles.
Take one down and pass it around, 8 Bottle on the wall.

7 Bottles of beer on the wall, 7 Bottles.
Take one down and pass it around, 7 Bottle on the wall.

6 Bottles of beer on the wall, 6 Bottles.
Take one down and pass it around, 6 Bottle on the wall.

5 Bottles of beer on the wall, 5 Bottles.
Take one down and pass it around, 5 Bottle on the wall.

4 Bottles of beer on the wall, 4 Bottles.
Take one down and pass it around, 4 Bottle on the wall.

3 Bottles of beer on the wall, 3 Bottles.
Take one down and pass it around, 3 Bottle on the wall.

2 Bottles of beer on the wall, 2 Bottles.
Take one down and pass it around, 2 Bottle on the wall.

1 Bottles of beer on the wall, 1 Bottles.
Take one down and pass it around, 1 Bottle on the wall.

1 Bottle of beer on the wall, 1 Bottle of beer.
Take one down and pass it around, no more  Bottles of beer on the wall.

no more  Bottles of beer on the wall, no more  Bottles of beer.
Go to the store and buy some more, 99 Bottle on the wall.


Create a new paste based on this one


Comments: