Write a function printPyramid that takes a single int argument and prints a pyramid-shaped
star pattern with as many rows as the argument.
For example, when the argument is 3 you should print the pattern:
* *** *****
When the argument is 4, you should print:
* *** ***** *******
If the argument is 0 or less, print nothing.
Remember, you can use System.out.print to print without creating a new line.
Stuck? You may find these lessons helpful: