Created
November 13, 2013 18:11
-
-
Save joeyv/7453624 to your computer and use it in GitHub Desktop.
Stupid game, don't play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Beer{ | |
public static void main(String []args){ | |
int beer; | |
int num; | |
Scanner scan = new Scanner(System.in); | |
num = scan.nextInt(); | |
num = 100 - num; | |
beer = 100; | |
while (beer >= num + 1) { | |
System.out.println ("\n" + beer + " bottles of beer on the wall, " + beer + " bottles of beer"); | |
beer -= 1; | |
System.out.println ("take one down, pass it around " + beer + " bottles of beer on the wall"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This sucks ass. Now all I do is drink beer. I miss high school.