Question: Why is it frozing? (while...)

Hi, I don't anderstand : executing the following function will froze maple if I enter other values that 'y' or 'n' (yes/no) It should stay in the while block and ask the user until it got 'y' or 'n' to quit the function thank to return call. code: askUser := proc() local rep; printf("Are you OK? (y/n)\n"); while true do rep:=op(scanf(%c)); if rep="y" then return(true); end if; if rep="n" then return(false); end if; end do; end proc; askUser();
Please Wait...