Assignment #82 Counting by Halves

Code

    /// Name: Matthew Lorence
    /// Period: 5
    /// Program Name: Counting Halves
    /// File Name: Counting Halves.java
    
    public class CountingHalves
    {
        public static void main (String[] args)
        {
            System.out.println("x");
            System.out.println("------");
            
            for ( double n = -10; n<=10; n = n + .5 )
            {
                System.out.println(n);
            }
        }
    }
        
        
        
    

Picture of the output

Assignment 82