Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*============================================================================
- ----------------------------------------------------------------------------
- 99_bottles.c - 99 Bottles Of Beer Lyrics.
- (c) Damion 'Phr0z3n.dev' Tapper, 2013.
- Email: Phr0z3n.Dev@Gmail.com
- NOTE: Secure API is implemented for responsible drinking.
- ----------------------------------------------------------------------------
- ============================================================================*/
- #include <stdio.h>
- int main(void)
- {
- int bottles_of_beer;
- printf_s(">>------------------> 99 Bottles Of Beer Lyrics <------------------<<\n\n");
- for(bottles_of_beer = 99; bottles_of_beer > 0; bottles_of_beer--)
- {
- printf_s("%d bottle", bottles_of_beer);
- if(bottles_of_beer != 1)
- printf_s("s");
- printf_s(" of beer on the wall, %d bottle", bottles_of_beer);
- if(bottles_of_beer != 1)
- printf_s("s");
- printf_s(" of beer.\n");
- printf_s("Take one down and pass it around, ");
- if((bottles_of_beer - 1) != 0)
- printf_s("%d", bottles_of_beer - 1);
- else
- printf_s("no more");
- printf_s(" bottle");
- if((bottles_of_beer - 1) != 1)
- printf_s("s");
- printf_s(" of beer on the wall.\n\n");
- }
- printf_s("No more bottles of beer on the wall, no more bottles of beer.\n");
- printf_s("Go to the store and buy some more, 99 bottles of beer on the wall.\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement