Assignment 83

Code

///Matthew Hughs
///5th period
///XY.java
///3/31/2016

class XY
{
    public static void main (String [] args)
    {
        System.out.println("X       Y");
        System.out.println("---------");
        
        for (Double x = -10.0 ; x <= 10.0 ; x = x + .5)
        {
            System.out.println(x + "        " + (x*x));
        }
    }
}
    

Picture of the output

Countingfor