Assignemnt #115 Number Puzzles I

Code

     ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Number Puzzles I
    ///File Name: NP1.java
    ///Date: 5/8/2016
    
 public class NP1
{
    public static void main( String[] args)
    {
        for( int n = 10 ; n <=99 ; n=n+1)
            for ( int m = 10 ; m <=99 ; m=m+1)
            {
                int a = n+m;
                int b = m-n;
                if(a == 60)
                    if(b==14)
                        System.out.println(n + " " + m);
            }
            
    }
}

    

Picture of the output

assignment115