/// Name: Mahima Choudhary /// Period: 6 /// Program Name: Counting Machine /// File Name: CountMach.java /// Date Finished: 1/8/2015 import java.util.Scanner; public class CountMach { public static void main(String[] args) { Scanner keyboard = new Scanner(System.in); int countTo; System.out.print("Count to: "); countTo = keyboard.nextInt(); for ( int n = 0; n <= countTo; n++ ) { System.out.print(n + " "); } System.out.println(); } }