81
Code
///Name: Conner Wygaerts
///Period: 6
///Project Name: CountingMachineAgain
///File Name: CountingMachineAgain.java
///Date Finished: 2/4/16
import java.util.Scanner;
public class CountingMachineAgain
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int message, x, y, z;
System.out.print("Count from: ");
x = keyboard.nextInt();
System.out.print("Count to: ");
y = keyboard.nextInt();
System.out.print("Count by: ");
z = keyboard.nextInt();
for ( int n = x; n <= y; n = n + z )
{
System.out.println( n + " ");
}
}
}
Picture of the output