@@ -0,0 +1,538 @@
+// Guess the letter game, 3rd version.%0Aclass Guess3 %7B%0A%09public static void main(String args%5B%5D) throws java.io.IOException %7B%0A%09%09char ch, answer = 'K';%0A%09%09%0A%09%09System.out.println(%22I'm thinking of a letter between A and Z.%22);%0A%09%09System.out.print(%22Can you guess it: %22);%0A%09%09%0A%09%09ch = (char) System.in.read(); // get a char%0A%09%09%0A%09%09if(ch == answer) System.out.println(%22** Right **%22);%0A%09%09else %7B%0A%09%09%09System.out.print(%22...Sorry, you're %22);%0A%09%09%09%0A%09%09%09// a nested if%0A%09%09%09if(ch %3C answer) System.out.println(%22too low%22);%0A%09%09%09else System.out.println(%22too high%22);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Guess the letter game v3