Assignment 115: Number Puzzle

Code

  ///Name: Ryan McAteer
  ///Period: 5
  ///Project Name: Number Puzzle
  ///File Name: Assignment115.java
  ///Date: 5/2/2016
    
public class Assignment115
{
	public static void main( String[] args ) throws Exception
	{
		System.out.println();

		for ( int i = 10; i < 99; i++)
		{
			for ( int j = 10; j < 99; j++)
			{
				if (i+j==60 && Math.abs(i-j)==14 )

					System.out.print(" ("+i+","+j+") ");
			}
		}

		System.out.println();
	}
}

    

Picture of the output

This Should Work