Assignment #115

Code

    /*
jack newsom
period 5
program NumberPuzzle
filename NumberPuzzle
date completd 11/13/15
*/

public class NumberPuzzle
{
    public static void main( String[] args )
    {
        for ( int x = 1; x <= 60; x = x + 1 )
        {
            for ( int y = 1; y <= 60; y = y + 1 )
            {
                if ( x+y == 60 && x-y == 14 )
                {
                    System.out.println("( " + x + " , " + y + " ) " );   
                }
            }
        }
    }
}  
    

Picture of the output