Created
August 29, 2014 16:05
-
-
Save lb7n/76124a1b9628d1df72fc to your computer and use it in GitHub Desktop.
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 Mainclass { | |
public static void main(String[] args) { | |
int best = 420; | |
System.out.println("Enter your favorite number: "); | |
Scanner mscanner = new Scanner(System.in); | |
boolean running = true; | |
while (running) { | |
int number = mscanner.nextInt(); | |
{if (number == 420 || number == 666 || number == 665){ | |
if (number == 420) { | |
System.out.println("You are a winner!"); | |
} | |
if (number == 666) { | |
System.out.println("HAIL SATAN!"); | |
} | |
if (number == 665) { | |
System.out.println("Hail Stan!"); | |
} }else { | |
System.out.println("Crappy number choice"); | |
} | |
if (number == 69) { | |
running = false; | |
} | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment