Assignment 83; XandY

Code

    // Donovan Rich
    // Period 6
    // Xs and Ys
    // XandY.java
    // 2/17/2016
    
    
    public class XandY
    {
        public static void main( String[] args )
        {
            double y;
            System.out.println( "| x       | y       |" );
            System.out.println( "\\_________|_________/" );
            for ( double x = -10 ; x <= 10 ; x = x+0.5 )
            {
                y = x*x;
                System.out.println( "  " + x + "         " + y );
            }
            
    
        }
    }
        

Picture of the output