Iwanna Multiple Choice Question from Ivor Hortons Book JAVA 2 Begners only from chapter 2 to 5.
just starting out myself but can you explain things better?
are you saying you want a sample of a multiple choice code?
// as userentered is higher than both a & b this if statement
// is executed and program doesn't run the other 2 if statements
// because of the end statement.
if (userentered > a) & (userentered > b)
System.out.println("you are higher than both start and end numbers!");
// only gets here if userentered if lower than a or b or lower than both
if userentered > a
System.out.println("you are higher than starting number");
System.out.println("you are lower than starting number");
if userentered > b
System.out.println(you are higher than ending number);
System.out.println("you are lower than endinging number");
hope this gives you some pointers