I've just thought about the ctrl+c
in the terminal which as you know stop every process, updating, an infinite loop and etc. then I start to program a code which prints the Fibonacci sequence in an infinite loop and trying to stop it with a specific key but I have no idea how it's possible.
Can anyone help me with this problem?
Thanks In advance