Assignemnt #119 and 120th program

Code

    ///Name: Derrick Andreasen
///Period: 7
///Program name: 120th Program
///File name: Hund19prog.java
///Date Finished:4/28/2016

import java.util.Scanner;

public class Hund119Prog
{
	public static void main( String[] args ) throws Exception
	{
        System.out.println( "" );
            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++)
            {
                int e = a + b + c + d;
                
                    if(e == 45)
                    {
                        if(a+ 2 == b - 2 && b - 2 == c * 2 && c*2 == d/2)
                        System.out.println( a + " " + b + " " + c + " " + d );
                    }
            }
    }
}
    

Picture of the output

Assignment 120