Question: first prompt the user for two integer inputs using Scanner. These must be requested in the following order: size: What is the size of the
first prompt the user for two integer inputs using Scanner. These must be requested in the following order:
size: What is the size of the mountain? In the picture above, the mountain has size 5 because there are 5 levels of squares, and the widest part of the mountain, at its bottom, is also 5 squares. A mountain will always be a square structure containing sizesize elements, some of which are hashtags (#) and some of which are blanks.
pattern: We will use an integer in the range 1 to 4 to indicate which pattern your program should produce. In the picture above, pattern 1 is shown. The other patterns are explained below
Your program then prints the mountain of the specified size and pattern.
Mario runs from left to right. he would have to climb, as shown in the example for a size 5 mountain.




##### #### ### ## #
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
