编写方法void myPrint(int n),打印三角形图案。如当n=5时,将打印如下的图案。

编写方法void myPrint(int n),打印三角形图案。如当n=5时,将打印如下的图案。


【正确答案】: