CountingMR

Code

import java.util.Scanner;

public class CountingMR
{
    public static void main( String[] args )
    {
        Scanner keyboard = new Scanner(System.in);
        
        int n1, n2, n3;

        System.out.println( " count from: " );
        n1 = keyboard.nextInt();
        System.out.println( " count to: " );
        n2 = keyboard.nextInt();
        System.out.println( " count by: " );
        n3 = keyboard.nextInt();

        for ( int n = n1 ; n <= n2 ; n = n+n3 )
        {
            System.out.println( n );
        }
    }
}

CountingMR

Assignment 81