Assignemnt #115 and 116th program

Code

///Name: Derrick Andreasen
///Period: 7
///Program name: 116th Program
///File name: Hund15prog.java
///Date Finished:4/22/2016

import java.util.Scanner;

public class Hund15prog
{
	public static void main( String[] args ) throws Exception
	{
        System.out.println( "" );
        
            for(int a = 10; a < 50; a++)
            {
            for(int b = 10; b < 50; b++)
            {
                if(a + b== 60 && b - a == 14)
                    System.out.println( "\n " + a + " " + b );
            }
                System.out.println( "" );
            }
    }
}
    

Picture of the output

Assignment 116