Assignment 115

Code

//Matthew Hughs
//5th period
//puz.java
//5/9/2016

class puz
{
    public static void main (String [] args)
    {
        for (int x = 0; x < 100; x++)
        {
            for (int y = 0; y < 100; y ++)
            {
                int sum = y + x;
                int dif = x - y;
                if (sum == 60 && dif == 14)
                {
                    System.out.print(x + "," + y);
                }
            }
        }
    }
}
    

Picture of the output

Countingfor