Assignemnt #115

Code

 /// Name: Daniel Nguyen
    /// Period: 6
    /// Project Name: Table
    /// File Name: Table.java
    /// File Name: Table.java
    /// Date: 3/11/2015

 public class NumPuz
{
	public static void main( String[] args ) throws Exception
	{
		System.out.println();

		for ( int i = 10; i < 99; i++)
		{
			for ( int j = 10; j < 99; j++)
			{
				if (i+j==60 && Math.abs(i-j)==14 )

					System.out.print(" ("+i+","+j+") ");
			}
		}

		System.out.println();
	}
}





    

Picture of the output

Assignment 3
BACK HOME NEXT