Assignment # 82 and Counting By Halves

Code

    /// Name: Tommy Oyuntseren
    /// Period: 7
    /// Program Name: CountingByHalves
    /// File Name: CountingByHalves.java
    /// Date: 2/18/2016

public class CountingByHalves
{
    public static void main(String[] args)
    {
        Double x;
        
        System.out.println("x\n------");
        
        for (x=-10.0; x<=10.0; x=x+0.5)
        {
            System.out.println(x+" ");
        }
    }
}
   
   

  

Picture of the output

Assignment 82