Assignment #82

Code

/// Name: Jonathan Stine
/// Period: 5
/// Program Name: Counting by Halves
/// File Name: ByHalves.java
/// Date FInished: 1492 When Columbus Sailed the Ocean Blue
    
    public class ByHalves {
        
        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 );
            }
            
        }
    }
    
 
    

Code Output