Assignemnt #83 and Xs And Ys

Code

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

Picture of the output

Assignment 1