Assignemnt #80: Counting Machine

Code

    /// Name: Cassie
    /// Period: 6
    /// Program Name: Counting Machine
    /// File Name: countingmachine.java
    /// Date Finished: 2/10/2016
    
    import java.util.Scanner;
    
    class countingmachine
    {
        public static void main( String[] args )
        {
            Scanner keyboard = new Scanner(System.in);
             int num;
    
            System.out.print( "Count to : " );
            num = keyboard.nextInt();
    
            for ( int n = 0 ; n <= num ; n = n+1 )
            {
                System.out.println( n );
            }
    
        }
    }
    

Picture of the output

Assignment 80