Assignment 82

Code

    public class CountingByHalf
    {
        public static void main( String[] args )
        {
            
            System.out.println("  x");
            System.out.println("_____");
            
            for ( double x = -10; x <= 10; x = x + .5 )
            {
                System.out.println( x );
            }
        }
    }
    

Picture of the output

Assignment