Assignemnt #76 Counting Machine

Code

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

    
  

Picture of the output

Assignment 80