Assignemnt #83

Code

///colin hinton
///5th period
///XY.java
///12/3/2015

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

Assignment 1