Assignment #52 The Worst Number-Guessing Game Ever
Code
///Name: Ian Grant
///Period:5
///Project Name: The Worst Number-Guessing Game Ever
///File Name:NumGuess.java
///11/4/15
import java.util.Scanner;
public class NumGuess
{
public static void main(String[] args)
{
Scanner stuff=new Scanner(System.in);
int gus;
System.out.println("teh worst number gessing gaaame evar!!");
System.out.print("I'm thinking of a number between 1 and 10. Try to guess it! ");
gus=stuff.nextInt();
if (gus==42)
{
System.out.println("Wrong it is between 1 and 10");
}
else
System.out.println("Wrong it was 42");
}
}
Output