Assignemnt #83: Xs and Ys

Code

    /// Name: Cassie
    /// Period: 6
    /// Program Name: Xs and Ys
    /// File Name: XsYs.java
    /// Date Finished: 2/26/2016
    
    class XsYs {
        
        public static void main( String[] args ) {
            
            double x, y;
            
            x = -10;
            
            System.out.println( " x\ty" );
            System.out.println( "---------------" );
            
            for ( x = -10; x <= 10; x = x + 0.5 ) {
                y = x * x;
                System.out.println( x + "\t" + y );
            }
            
            System.out.println();
            
        }
    }
    

Picture of the output

Assignment 83