import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner (System.in);
int c = scan.nextInt();
int d=scan.nextInt();
int a,b;
for (a=1;a<=c;++a){
for (b=1;b<=d;++b){
System.out.print(a*b+"\t");}
System.out.println();}}}
Комментариев нет:
Отправить комментарий