Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main()
- print("Do you want to run the program? (y/n)")
- local user_input = read()
- if user_input:lower() == 'y' then
- runProgram()
- elseif user_input:lower() == 'n' then
- print("Program not executed.")
- else
- print("Invalid input. Please enter 'y' or 'n'.")
- main()
- end
- end
- function runProgram()
- -- Replace the following line with the code to run your desired program
- shell.run("your_program") -- Replace with your actual program name
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement