Ask the user to input three positive integers M, N and q. Make the 2 dimensional array of integers with size MxN, where all the elements of I (I = 1,…,M) line will be members of geometrical progression with first element equal to the number of line (I) and denominator q.

Спросите пользователю ввести три целые положительные числа M, N и Q. Сделать 2 одномерный массив целых чисел с размером MXN, где все элементы I (I = 1, ..., M) линия будет члены геометрической прогрессии с первого элемента, равное числу линии (I) и знаменателя q.


пожалуста помогите решить