使用星星打印形状

问题描述:

用星星绘制不同形状的方法是什么?
例如:
n = 5(行数)
*
**
***
****
*****

what is the method of drawing different shapes with stars?
for example:
n=5(number of rows)
*
**
***
****
*****

对于这样一个简单的形状,两个弯曲的环和一个printf就足够了.
For such a simple shape two annided loops and a printf are enough.