for i in 1..10
for j in 1..i
print ('*')
end
print ("\n")
end
output:
*
**
***
****
*****
******
*******
********
*********
**********
for j in 1..i
print ('*')
end
print ("\n")
end
output:
*
**
***
****
*****
******
*******
********
*********
**********
No comments:
Post a Comment