///name: Ben Borglin ///Period: 6 ///Program name: Counting Machine ///File Name: CountMachine.java ///Date Finished: 10/29/15 import java.util.Scanner; public class CountMachine { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int stop, n; System.out.print("Counting to: "); stop = keyboard.nextInt(); for (n = 1; n <= stop; n = n + 1) { System.out.print(n + " "); } System.out.println(" "); } }