/* Start of a multiline comment
 * This program should have the following behavior.
 * 
 *   What number do you want to count by? 2
 *   What number do you want to start at? 13
 *   What number do you want to end at? 42
 *   13 15 17 19 21 23 25 27 29 31 33 35 37 39 41
 * 
 * End of multiline comment */

import java.util.*;

public class CountBy {
  public static final Scanner CONSOLE = new Scanner(System.in);
  
  public static void main(String[] args) {
    System.out.println("This is a for loop activity for CS 1063\n");
    
    // input
    System.out.print("What number do you want to count by?");
    int countBy = CONSOLE.nextInt();
    System.out.print("What number do you want to start at?");
    int start = CONSOLE.nextInt();
    System.out.print("What number do you want to end at?");
    int end = CONSOLE.nextInt();
    
    // output
    for (int i = start; i <= end; i += countBy) {
      System.out.print(i + " ");
    }
    System.out.println();
  } 
}

