Prog 81: Counting Machine Revisited
///Name: Ilana Levy
///Period: 5
///Program Name: Counting Machine Revisited
///File Name: countingRevisisted.java
///Date Finished: 9/25/2015
import java.util.Scanner;
public class countingRevisited
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner( System.in );
int from, to, by, number;
System.out.print( "Count from: " );
from = keyboard.nextInt();
System.out.print( "Count to: " );
to = keyboard.nextInt();
System.out.print( "Count by: " );
by = keyboard.nextInt();
for ( number = from ; number <= to ; number = number + by )
System.out.print( number + " " );
System.out.println();
}
}