Assignemnt #1115 and Number Puzzle

Code

    ///Name: Daniel Tiffany-Appleton
    ///Period: 7
    ///Program Name: Number Puzzle
    ///File Name: NumberPuzzle
    ///Date Finished: 3/23/16
    
    public class NumberPuzzle
    {
        public static void main( String[] args )
        {
            System.out.println("Watch as a generate numbers whose sum is 60 and whose difference is 14");
            
            for(int x = 0; x <= 60; x++)
            {
                for(int y = 0; y <= 60; y++)
                {
                    int sum = y + x;
                    int diff = y - x;
                    
                    if( sum == 60 && diff == 14 )
                    {
                        System.out.println("(" + x + "," + y + ")");
                    }
                }
            }
        }
    }

    

Picture of the output

Assignment 115