Assignemnt #81 Counting Machine Revisited

Code

    ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Counting Machine Revisited
    ///File Name: CMR.java
    ///Date: 3/1/2016
  
import java.util.Scanner;

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


    

Picture of the output

assignment81