Assignemnt #80 and Counting Machine

Code

    ///Name: Daniel Tiffany-Appleton
    ///Period: 7
    ///Program Name: Counting Machine
    ///File Name: CountingMachine
    ///Date Finished: 2/3/16
    
    import java.util.Scanner;
    
    public class CountingMachine
    {
        public static void main( String[] args )
        {
            Scanner keyboard = new Scanner(System.in);
            
            int countingNumber, number;
            
            System.out.print("Count to: ");
            countingNumber = keyboard.nextInt();
            
            for ( number = 0 ; number <= countingNumber ; number = number+1 )
            {
                System.out.print( number + " " );
            }
            
        }
    }


    

Picture of the output

Assignment 80