This is a question on one of my homework assignments and I have it narrowed down between these two but I'm not sure which one it is. Anyone know it?
To avoid an infinite loop make sure the loop body: alters the exit condition or contains at least one output statement?