Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hi()
- print("Type a number, any number: ")
- maxInt = io.read()
- print(maxInt)
- print("What should you count by: ")
- step = io.read()
- print(step)
- for i = 0, maxInt, step do
- io.write("hi ".." maxInt: "..maxInt.." step: "..step.." i: ",i,"\n")
- -- it appears .. and , do the same thing
- end
- end
- hi ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement