Skip to content

Instantly share code, notes, and snippets.

@joeyv
Created November 13, 2013 18:11
Show Gist options
  • Save joeyv/7453624 to your computer and use it in GitHub Desktop.
Save joeyv/7453624 to your computer and use it in GitHub Desktop.
Stupid game, don't play
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");
}
}
}
@imryan
Copy link

imryan commented Jun 24, 2016

This sucks ass. Now all I do is drink beer. I miss high school.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment