画:
*
**
***
****
*****
乘法:
row = 0
while row < 5:
row += 1
print ("*"*row)
不用乘法:
row = 0
while row < 5:
column = 0
row += 1
while row > column:
column += 1
print ('*',end='')
print ('')
画:
*
**
***
****
*****
乘法:
row = 0
while row < 5:
row += 1
print ("*"*row)
不用乘法:
row = 0
while row < 5:
column = 0
row += 1
while row > column:
column += 1
print ('*',end='')
print ('')