Assignemnt #83 and Xs and Ys

Code

/// Name: David Shkolnikov
/// Period: 6
/// Program Name: Xs and Ys
/// File Name: XsandYs.java
/// Date Finished: 2/16/2016

public class XsandYs
{
    public static void main( String[] args )
    {
        System.out.println("x\ty");
        System.out.println("-------------------");
        
        for ( double x = -10; x <= 10; x = x + .5 )
        {
            double y = x * x;
            System.out.println(x + "\t" + y);
        }
    }
}
    

Picture of the output

Assignment 8