Assignemnt #80 and Counting Machine
Code
/// Name: David Shkolnikov
/// Period: 6
/// Program Name: Counting Machine
/// 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 number = keyboard.nextInt();
for ( int n = 0; n <= number; n = n + 1 )
System.out.print(n + " ");
System.out.println(" ");
}
}
Picture of the output