Assignment #115 and Number Puzzle I

Code

                        /// Name: Graham Pollock
                        /// Period: 5
                        /// Program Name: NP1
                        /// File Name: NP1.java
                        /// Date Finished: 04/24/2016/

     public class NP1
    {
        public static void main(String[] args)
        {
            for (int a = 1; a < 100; a++)
            {
                for (int b = 1; b < 100; b++)
                {
                    int s = a + b;
                    int d = a - b;
                    
                    if (s == 60 && d == 14)
                    {
                        System.out.println("(" + a + "," + b + ")");
                    }
                }
            }
        }
    }     
    

Picture of the output

Assignment