daily pastebin goal
14%
SHARE
TWEET

I got bored again at school:2

BobMe Feb 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function stairword(strn)
  2.     num = string.len(strn)
  3.     for i=1,num do
  4.         if string.sub(strn,i,i) ~= " " then
  5.             print(string.sub(strn,1,i))
  6.         end
  7.     end
  8.     for i=1,num-1 do
  9.         if string.sub(strn,i,i) ~= " " then
  10.             print(string.sub(strn,1,(num)-i))
  11.         end
  12.     end
  13. end
  14.  
  15. stairword("comments like these in youtube should be exiled")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top