//SampleIO Demo import java.io.*; public class SimpleIO_Demo { static BufferedReader keyboard = new BufferedReader (new InputStreamReader (System.in)); public static void main(String[] args)throws IOException { int a = 0, b, c; //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 = Integer.parseInt(keyboard.readLine()); //double aa = Double.parseDouble(keyboard.readLine()); //System.out.print("...found " + aa + "\n"); System.out.print("Second number: "); b = Integer.parseInt(keyboard.readLine()); System.out.print("Third number: "); c = Integer.parseInt(keyboard.readLine()); int result; result = (int) Math.ceil(Math.sqrt( a));// + b*b + c*c; System.out.println(a + "*" + a + " + " + b + "*" + b + " + " + c + "*" + c + " = " + result + ". Thank you."); } }