Assignment #115

Code

    ///Name: Matthew Lorence
    ///Period: 5
    
    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