Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function generatestairs(x,y,t)
- xg = ""
- yg = ""
- xr=x
- yy=0
- while yy <= y do
- for h=1,xr do
- xg = xg.."#"
- end
- for i=1,t do
- print(xg)
- end
- x=x+(math.floor(x/2))
- yy=yy+1
- end
- end
- generatestairs(9,4,2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement