Assignemnt #120
Code
/// Name: Daniel Nguyen
/// Period: 6
/// Project Name: NewHope
/// File Name: NewHope.java
/// Date: 3/11/2015
public class NewHope
{
public static void main( String[] args ) throws Exception
{
System.out.println();
for ( int i = 1; i < 43; i++)
{
for ( int j = 1; j < 43; j++)
{
for ( int k = 1; k < 43; k++)
{
for ( int l = 1; l < 43; l++)
{
if ( (i+j+k+l)==45 && i+2==j-2 && k*2==l/2 && j-2==k*2 )
System.out.print(" "+i+" "+j+" "+k+" "+l+"\n");
}
}
}
}
System.out.println("Good Job, Skywalker!");
}
}
Picture of the output