Wednesday, November 9, 2011

How can you tell whether an algorithm contains a loop?

Look for a decision point (e.g., IF ELSE statement) and then beyond that, see if there's another statement that loops you back (e.g., GO TO) to the original decision point.

No comments:

Post a Comment