I am to write a program that takes two lists of 5 positive integers each, and place them in two arrays called "rowList" and "columnList". Afterwards, generates 5 rectangles of asterisks, each with dimensions taken from the previous two arrays provided. The 1st elements of "rowList" and "columnList" would generate the first rectangle, the 2nd elements of "rowList" and "columnList" would generate the second rectangle, and so on.
The program must implement and use a function called "printRectangle", which takes two input parameters (one for row numbers, and one for column numbers),and generates a rectangle with the dimension specified by the parameters (row and column).
Can someone explain how to program the part for rectangles where it picks up one number from rows and one from columns and create a rectangle accordingly?