Assignment #82 Counting By Halves

Code

    /// Name: DeeJay Cerezo
/// Period: 7
/// Program Name: ForHalves
/// File Name: ForHalves.java
/// Date Finished: 2/25/2016

import java.util.Scanner;

public class ForHalves
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);

        System.out.println( "x" );
        System.out.print( "------" );
        

        for ( double n = -10 ; n <= 10 ; n = n + .5 )
        {
            System.out.println( n + ". " );
        }

    }
}


    

Picture of the output

Assignment 82