Assignment #115

Code

    
    ///Name: Cody Swain
    ///Period: 6
    ///Project Name: puzzle
    ///File Name: puzzle.java
    ///Date: 5/3/16
    
    
    
    public class puzzle
    {
        public static void main( String[] args)
        {
            for (int a=10; a<60; a++){
                for (int b=10; b<60; b++){
                    if ( a+b == 60 && ( a-b == 14 || b-a==14 ) ){
                        System.out.println( a + " + " + b );
                    }
                }
            }
        }
    }
                
    



    

Picture of the output

Assignment 115