Assignment #82

Code

    /// Name: Mahima Choudhary
    /// Period: 6
    /// Program Name: Counting By Halves
    /// File Name: Halves.java
    /// Date Finished: 1/8/2015
    
    public class Halves
    {
        public static void main(String[] args)
        {
            for( double n = -10; n <= 10; n = n + 0.5 )
            {
                System.out.println(n);
            }
        }
    }
    

Picture of the output

Assignment 82