Assignment #119 and Number Puzzles IV: A New Hope

Code

    ///Name: Tim Gibson
    ///Period: 6
    ///Project Name: Number Puzzles IV: A New Hope
    ///File Name: Puzzle4.java
    ///Date Finished: 1/4/16
        
    public class Puzzle4
    {
        public static void main ( String[] args )
        {
            
            int E, F, G, H, I;
            
            for ( int A = 1; A <= 100; A++)
            {
                for ( int B = 1; B <= 100; B++)
                {
                    for ( int C = 1; C <= 100; C++)
                    {
                        for ( int D = 1; D <= 100; D++ )
                        {
                            E = A + 2;
                            F = B - 2;
                            G = C * 2;
                            H = D / 2;
                            I = A + B + C + D; 
                            
                            if ( E == F && F == G && G == H && I == 45 )
                                System.out.println( A + " " + B + " " + C + " " + D );
                        }
                    }
                }
            }
        }
    }
                        
    

Picture of the output

119