Assignment #83

Code

    
    ///Name: Cody Swain
    ///Period: 6
    ///Project Name: CountingHalves
    ///File Name: CountingHalves.java
    ///Date: 1/13/16
    
    
    public class CountingHalves2
    {
        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 83