import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("Number: ");
int number = in.nextInt();
System.out.print("Length: ");
int length = in.nextInt();
for (int i = 1; i <= length; i++) {
System.out.println(number + " * " + i + " = " + number * i);
}
}
}
Comments
Leave a comment