Online Editor Link (Fork this): LINK Alternatively, you can…
Online Editor Link (Fork this): LINK Alternatively, you can also use the editor here: LINK Write a function pattern(h), where h is the parameter that defines the height of the following pattern. The pattern prints out the half-hollow pyramid, as shown in the test cases below. Note: You do not need to return anything from the function, just have it print directly. pattern(5): * ** * * * ****** pattern(6): * ** * * * * * ******* pattern(7): * ** * * * * * * * ********
Read Details