import java.util.Scanner; public class NewCount{ public static void main(String[] args){ Scanner k = new Scanner(System.in); System.out.print("Count to: "); int end = k.nextInt(); System.out.print("Count from: "); int start = k.nextInt(); System.out.print("Count by: "); int inc = k.nextInt(); System.out.println(); for(int i = start; i <= end; i = i + inc){ System.out.print(i + " "); } System.out.println(); } }