Assignment #115 Number Puzzle 1

Code

      ///Name: Ian Grant
      ///Period:5
      ///Project Name: Number Puzzle 1
      ///File Name:NumPuzz.java
      ///00/00/16
      
      public class NumPuzz
      {
          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);
                      }
                  }
              }
      	}
      }
      

Output