public class Solution {
    public static void main(String[] args) throws Exception {
        int i = 1, j = 1;
        while (i <= 10){
            while (j <= 9) {
                System.out.print(j * i+ " ");
                j++;
            }
            System.out.println(j * i + " ");
            j = 1;
            i++;


        }

    }
}