Assignemnt # and
Code
///Name: Dakota Donahue
///Period: 5
///Project Name:
///File Name:
///Date: 3/10/2016
import java.util.Scanner;
public class CountingMachineRevisited
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
System.out.print(" Count from: ");
int x = keyboard.nextInt();
System.out.print(" Count to: ");
int y = keyboard.nextInt();
System.out.print(" Count by: ");
int z = keyboard.nextInt();
for ( int n = x ; n <= y ; n = n+z )
{
System.out.print( n + " ");
}
System.out.println();
}
}