Assignment #83

Code

    /// Name: Ian Stanko
    /// Period: 5
    /// Program Name: xy
    /// File Name: xy.java
    /// Date Finished: 2/5/2016
    
    public class xy
    {
        public static void main( String[] args )
        {
            System.out.println( " X " +  "\t" + "Y" );
            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 HOME

Assignment 83