You are on page 1of 1

import java.util.

Scanner;

public class Class {


public Class() {
// TODO Auto-generated constructor stub
}
boolean x = true;
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
System.out.println("Guessing Quiz");
System.out.println("1. Start");
System.out.println("2. Exit");
int select = scan.nextInt();
if (select == 1);
System.out.println("Select a number between 1-40");
int x = scan.nextInt();
if (x <= 5 && x >= 15 || x <= 25 && x >= 30){
System.out.println("That is correct");
}
if (x > 5){
//for (int y = x; x > 5 ;);
System.out.println("That is incorrect");
}
}
}

You might also like