Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function stairword(strn)
- num = string.len(strn)
- for i=1,num do
- if string.sub(strn,i,i) ~= " " then
- print(string.sub(strn,1,i))
- end
- end
- for i=1,num-1 do
- if string.sub(strn,i,i) ~= " " then
- print(string.sub(strn,1,(num)-i))
- end
- end
- end
- stairword("comments like these in youtube should be exiled")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement