Two more questions
import java.util.Scanner;
public class mor
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
String q1, q2;
System.out.println( "Can" );
System.out.println();
System.out.println( "Think of something and I'll try to guess it!" );
System.out.println();
System.out.println( "Question 1) Does it belong inside or outside or both? " );
q1 = keyboard.next();
System.out.println( "Question 2) Is it alive? " );
q2 = keyboard.next();
System.out.println();
if ( q1.equals("inside") && q2.equals("yes") )
{
System.out.println( "Is it a cat?" );
}
if ( q1.equals("inside") && q2.equals("no") )
{
System.out.println( "Is it a blender?" );
}
if ( q1.equals("outside") && q2.equals("yes") )
{
System.out.println( "Is it a tree?" );
}
if ( q1.equals("outside") && q2.equals("no") )
{
System.out.println( "Is it a hill?" );
}
if ( q1.equals("both") && q2.equals("yes") )
{
System.out.println( "Is it a dog?" );
}
if ( q1.equals("both") && q2.equals("no") )
{
System.out.println( "Is it a car?" );
}
}
}
Picture of the output