RosettaCodeData/Task/Program-termination/Maxima/program-termination.maxima
2023-07-01 13:44:08 -04:00

6 lines
271 B
Text

/* 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)));