1
2 import java.util.Scanner;
3
4
5
6
7 @author
8
9 public class forLoopAssess {
10
11
12 @param args
13
14 public static void main(String[] args)
15 {
16
17 Scanner sc = new Scanner(System.in);
18 int value1 = 0;
19 int value2 = 0;
20
21 System.out.println("Please enter the first number:");
22 value1 = sc.nextInt();
23
24 System.out.println("Please enter the second number:");
25 value2 = sc.nextInt();
26
27
28 for (int i = value1; i <= value2; i++)
29 System.out.println(i);
30
31
32
33
34
35 }
36
37 }
38