Assignemnt #115 and Number Puzzles I

Code

/// Name: David Shkolnikov
/// Period: 6
/// Program Name: Number Puzzles I
/// File Name: NumberPuzzlesI.java
/// Date Finished: 5/5/2016

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

Picture of the output

Assignment 8