Assignemnt #80 and Counting Machine
Code
/// Name: Raff Lisbona
/// Period: 6
/// Program Name: Counting Machine
/// File Name: CountingMachine.java
/// Date Finished: 1/15/2015
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