import java.io.*; class TwoNums2 { // A program that prompts for two numbers then prints the difference between // the two squares. public static void main (String[] args) throws IOException { int m,n,d; BufferedReader in = Text.open(System.in); System.out.print("Enter first number: "); m=Text.readInt(in); System.out.print("Enter second number: "); n=Text.readInt(in); d=m*m-n*n; System.out.println("The difference between the two squares is: "+d); } }