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

Задача 37052. 12.25k


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
 20 16 12 8 4
 19 15 11 7 3
 18 14 10 6 2
 17 13 9 5 1