/// Name: JJ Deng /// Period: 6 /// Program Name: Number Puzzles I /// File Name: NumberPuzzles.java /// Date Finished: 5/2/2016 import java.util.Scanner; public class NumberPuzzle { public static void main( String[] args ) throws Exception { System.out.println(); for ( int i = 10; i < 99; i++) { for ( int a = 10; a < 99; a++) { if (i+a==60 && Math.abs(i-a)==14 ) System.out.print(" ("+i+","+a+") "); } } System.out.println(); } }