How to terminate a program?


Newbie question, sorry. I started a simple program with a “while” statement to increment a short string of numbers. Unfortunately because of the way I wrote it the “while” condition will never be met so the program won’t stop running and is endlessly generating numbers. How do I stop the program? Thanks


I just discovered that simply closing the file would stop the program. I was surprised to find that restarting the computer did not terminate the program.


did you restart the vm using the cloud9 menu? That should always work.
Usually you can also press ctrl-c to stop the program, but sometimes if there is too much output, it may not work.


Thanks, things seem back to normal. I just learned a lot. Never saw the cpu working so hard.