|
What would happen if the braces showing the loop body were removed? A good answer might be:The loop would become an infinite loop. Those two characters make a big difference! | ||
Just Two Characters DifferentHere is a fragment of the program, with those two braces removed:
In this version, it is clear that the value of N is never changed inside of the loop, so the condition N > 1 will always be true, and the loop will continue forever. | ||
QUESTION 10:What would happen to the original program if the brace after the else and its matching brace were removed? Click Here after you have answered the question |