PATTERN QUESTION * *** ***** ******* ********* We have shown five rows above, in the program you will be asked to enter the numbers of rows you want to print in the pyramid…