Олимпиадный тренинг

Задача 37048. 12.25g


Numbers n and m are given. Create an array A[n][m] and fill it as shown in the example.

Input: The program receives two numbers n and m as input.
Output: The program should output the resulting array, putting exactly 3 characters for each number.

Examples
# Input Output
1 4 5
  4 8 12 16 20
  3 7 11 15 19
  2 6 10 14 18
  1 5 9 13 17