/// Name: Kyle Ivy /// Period: 5 /// Program Name: CountingMachine /// File Name: CountingMachine.java /// Date Finished: 1/5/2016 import java.util.Scanner; public class CountingMachine { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); int n; System.out.print( "Count to: " ); n = keyboard.nextInt(); for ( int x = 0; x <= n; x++ ){ System.out.print( x + " " ); } System.out.println(); } }