Answer:
1. Press "Ctrl+c" at the same time
2. Add a & to the command line
3. Press "Ctrl + z"
Explanation:
When your program enters an infinite loop, one way to stop it is to press the control key, at the same time you also press the alphabet C.
"Ctrl + C" where C represents Cancel.
Another way is by adding an ampersand sign (&) at the end of the command line.
Lastly, instead of killing the process, you can put it in a stopped state by pressing Ctrl + Z and then type letters b and g together (bg) to make the program continue running in background.