첫째 줄에 N이 주어진다. N은 1보다 크거나 같고, 9보다 작거나 같다.
출력형식과 같게 N x 1부터 N x 9까지 출력한다.
import java.util.Scanner;
public class Voielactee {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
for (int i = 1; i < 10; i++) {
System.out.println(N + " * " + i + " = " + N*i);
}
}
}