Assignemnt #115: Number Puzzles I

Code

    /// Name: Kelsey Lieberman
    /// Period 5
    /// Program Name: NumberPuzzlesI
    /// File Name: NumberPuzzlesI.java
    /// Date Finished: 2/11/2016
    
public class NumberPuzzlesI
{
    public static void main(String[] args)
    {
        for (int x = 10; x < 100; x++)
            for (int y = 10; y < 100; y++)
            {  
                if ( x+y == 60 && (x-y == 14 || y-x == 14) )
                    System.out.println(x + " " + y);
            }
    }
}
    

Picture of the output

Assignment 115