On Monday, 27 July 2015 at 15:40:56 UTC, Alex wrote:
The program quits after "writeln("Do you want to play again? Y/N?");"
It ignores readln.

Furthermore: What I am actually trying to do is: If I type "Y", the programm should just rerun from the beginning.

I am really new to programming and there is probably a much easier way but this is all I know to this point.

Thanks in advance!

As John said, the Learn forum is a better spot for this but as far as your problem goes, look into the do-while loop construct. It's perfect for this situation. You could also use "break" inside of an infinite while loop. Good luck.

Reply via email to