/// Name: Lacey Reese /// Period: 5 /// Program Name: CountingMachine /// File Name: CountingMachine.java /// Date Finished 2/5/2016 import java.util.Scanner; public class CountingMachine { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); System.out.print( "Count to: " ); int m = keyboard.nextInt(); for ( int n = 1; n <= m; n = n+1 ) { System.out.print( n + "\t" ); } System.out.println(); } }Picture of the output
//