Assignment 115, Number Puzzle I

Code

   ///Name: Stella Koliavas
   ///Period: 5
   ///Program Name: Number Puzzle 
   ///File Name: NumberPuzzle.java
   ///Date Finshed: 5/17/16
   
   public class NumberPuzzle
  {
	public static void main( String[] args )
	{
        for ( int x=1; x < 61; x++ )
        {
          for ( int y=1; y < 61 ; y++  )
		  {
            int c = y + x;
            int d = x - y;
            
            if (c == 60 && d == 14)
                System.out.println( x + " and "+ y + " make 60 and subtract to 14");
            
		  }
        }
     
	}
  }


        
        
        
    

Picture of the output

Assignment 115