Search for question
Question

QUESTION 4: WRITE A PROGRAM 2 {35 points} Write a complete Java program and test it. Include a static method called drawPyramid that takes one int parameter (the height of the

pyramid). The method prints a two-dimensional pyramid with a height (or number of rows) given by the parameter as shown below. Write a complete main method that uses Console to prompt the user for an int value. Call drawPyramid from main and use it to draw a pyramid of the height the user entered.