Write a method print Triangle that has a char parameter ch and an int parameter n.The method should print a triangular pattern with the perimeter consisting of the character ch and the interior (if there is one) consisting of blanks.As an example the call
printTriangle('*',5);
should produce output of the form
*
**
* *
* *
*****