///Name: Cody Swain ///Period: 6 ///Project Name: CountingMachine ///File Name: CountingMachine.java ///Date: 1/12/16 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(); } }