Assignment 82: Counting by Halves

Code

    /// Name: Ryan McAteer
    /// Period: 5
    /// Program Name: Collatz Sequence
    /// File Name: Assignment82.java
    /// Date Finished: 2/25/16

public class Assignment82
{
	public static void main( String[] args )
	{
        System.out.println( "x" );
        double y, x;
        x = -10;
        System.out.println("----------");
        for ( y = 10; x <= y; x = x + 0.5 )
        {
            System.out.println( x );
        }
    }
}
    

Picture of the output

This Should Work