Assignemnt #115 and Puzzles

Code

/// name: Leila Ordukhani
/// period: 6
/// program name: One Hundred and Five Program
/// file name: Puzzles.java
/// date finished: 4/28/16

import java.util.Scanner;

public class Puzzles
{
    public static void main( String[] args ) throws Exception
    {
    
                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 115