Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int num1, num2, i, x, j;
- System.out.print("Enter number1: ");
- num1 = sc.nextInt();
- System.out.print("Enter number2: ");
- num2 = sc.nextInt();
- for (j = num1; j <= num2; j++) {
- for (i = 1; i <= 12; i++) {
- x = j * i;
- System.out.println(j + "*" + i + "=" + x);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement