Assignemnt #115 and Number Puzzle 1

Code

      /// Name: Brian Phillips
    /// Period: 5
    /// Program name:Number Puzzle 1
    /// File Name: Puzzle1.java
    /// Date Finished: 5/5/2016
class Puzzle1
{
    public static void main (String [] args)
    {
        for (int x = 0; x < 100; x++)
        {
            for (int y = 0; y < 100; y ++)
            {
                int sum = y + x;
                int dif = x - y;
                if (sum == 60 && dif == 14)
                {
                    System.out.print(x + "," + y);
                }
            }
        }
    }
}
    

Picture of the output

Puzzle1.html