I need to create a program that has (at least) two variables, char and num. I need to use nested loops to print char, a character, in the form of the following pattern on as many lines and as many times as specified by num. For example, if char is “M” and num is 5, then the program will draw the following pattern:

M
MM
MMM
MMMM
MMMMM