willyb321

test3

May 9th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. runs = 0
  2. local dorun
  3. function iDunno()
  4.   repeat
  5. io.write("Do you want to continue? (y/n) ")
  6. io.flush()
  7. dorun = io.read()
  8. runs = runs + 1
  9. print("current run number: "..runs.."")
  10.   until dorun == "n"
  11. end
  12.  
  13. iDunno()
Add Comment
Please, Sign In to add comment