Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("For Loop Sample")
- for i = 0, 5 do
- print("Current Position: "..i)
- end
- local x = 0
- while x < 10 do
- print("x="..x)
- x = x+1
- end
- local password = ""
- while password ~= "dw20" do
- term.write("Enter Password:")
- password = read()
- end
- local y = 6
- repeat
- print("Y: "..y)
- until y > 5
- print("Correct Password!!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement