Assignemnt #82: Counting By Halves

Code

    /// Name: Cassie
    /// Period: 6
    /// Program Name: Counting By Halves
    /// File Name: halvescounting.java
    /// Date Finished: 2/26/2016
    
    class halvescounting
    {
        
        public static void main( String[] args )
        {
            
            double x;
            
            System.out.println( "x" );
            System.out.println( "------" );
            
            for ( x = -10; x <= 10; x = x+0.5 ) {
                System.out.println( x );
            }
            
        }
    }
    

Picture of the output

Assignment 82