Assignment #83 and X And Y

Code

    /// Name: Tim Chuang
/// Period: 7
/// Program Name: X And Y
/// File Name: XAndY.java
/// Date Finished: 3/4/2016

import java.util.Scanner;

public class XAndY
{
	public static void main( String[] args )
	{
        double x, y;
        System.out.println("X       Y" );
        System.out.println("------------");
        for ( x = -10; x<= 10; x = x + .5 )
        {
            y = x*x;
            System.out.println( x + "   " + y );
        }
    }
}

    

Picture of the output

Assignment 83