Assignment #115

Code

    /// Gian Adoremos
    /// Period: 7
    /// Program Name: HundrethFifteenth Program
    /// File Name: NumberPuzzle1.java
    /// Date Finished: 4/27/16
    
    public class NumberPuzzle1
    {
        public static void main(String[] args)
        {
            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