RosettaCodeData/Task/Program-termination/Maxima/program-termination.maxima

7 lines
271 B
Plaintext

/* Basically, it's simply quit() */
block([ans], loop, if (ans: read("Really quit ? (y, n)")) = 'y
then quit()
elseif ans = 'n then (print("Nice choice!"), 'done)
else (print("I dont' understand..."), go(loop)));