import java.io.*; import java.util.Scanner; public class SimpleIO_Demo { public static void main(String[] args) throws IOException { int a = 0, b, c; Scanner scan = new Scanner(System.in); // System.out.println("The value of b is " + b); System.out.println("Hello. I will sum the squares of three" + " integers you give me."); System.out.print("First number: "); a = scan.nextInt(); System.out.print("Second number: "); b = scan.nextInt(); System.out.print("Third number: "); c = scan.nextInt(); double result; result = a*a + b*b + c*c; System.out.println(a + "*" + a + " + " + b + "*" + b + " + " + c + "*" + c + " = " + result + ". Thank you."); } }