Browse Source

Fixed Inconsistency in grammar

master
lunarised 5 years ago
parent
commit
6d606e85f4
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      99Bottles/C99Bottles.c

+ 8
- 1
99Bottles/C99Bottles.c View File

@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
int rMethod(int _bottle){
if(_bottle > 1){
if(_bottle > 2){
printf("%d bottles of beer on the wall!\n", _bottle);
printf("%d bottles of beer!\n", _bottle);
printf("You take one down, and pass it around!\n");
@@ -10,6 +10,13 @@ int rMethod(int _bottle){
printf("\n");
rMethod(_bottle);
}
else if (_bottle == 2){
printf("%d bottles of beer on the wall!\n", _bottle);
printf("%d bottles of beer!\n", _bottle);
printf("Take it down, and pass it around!\n");
_bottle--;
printf("%d more bottle of beer on the wall!\n", _bottle);
}
else if (_bottle == 1){
printf("%d more bottle of beer on the wall!\n", _bottle);
printf("%d more bottle of beer!\n", _bottle);


Loading…
Cancel
Save