Assignemnt #52 and stoopid.java
Code
/// Name: Boris Kazantsev
/// Period: 6
/// Program Name: Stupid
/// File Name: Stupid.java
/// Date Finished: 10/29/2015
import java.util.Scanner;
public class Stupid{
public static void main(String[] args){
Scanner keyboard = new Scanner(System.in);
int guess;
System.out.println("eh");
System.out.println();
System.out.print("Guess a number from 1-10... ");
guess = keyboard.nextInt();
System.out.println();
if (guess == 2){
System.out.println("wow nice");
}
else if (guess > 10){
System.out.println("dont be an idiot just play the game");
}
else {
System.out.println("wrong, but who cares, this is a stupid game anyway...");
}
}
}
Picture of the output