exit -- terminate your program
Terminate your program and return any given value to the operating system. exit is similar to end, but it will terminate your program immediately, no matter what.
print "Do you want to continue ?"
input "Please answer y(es) or n(o): " a$
if (lower$(left$(a$,1))="n") exit 1