81

Code

  /// Name: Josh Bautista
  /// Period: 6
  /// Program Name: Counting Machine Revisited 
  /// File Name: CMR.java
  /// Date Finished: 2/26/2015
  
  import java.util.Scanner;

public class CMR
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);
        int n1, n2, n3;
        
        System.out.print(" Count from: ");
        n1 = keyboard.nextInt();
        System.out.print(" Count to: ");
        n2 = keyboard.nextInt();
        System.out.print(" Count by: ");
        n3 = keyboard.nextInt();
        for ( int n = n1 ; n<= n2 ; n = n+n3 )
        {
            System.out.println( n );
        }
    }
}
    

Picture of the output

Assignment 4