Wednesday, November 7, 2007

do{ myhomework } while (happymeter<10);

Are there any specific tips you would give to someone else tackling the same problem? How would what you suggest benefit that person in solving the problem?

While doing while and do while loops remember the basic structure of the loop. It can get confusing to trace code if you do not remember when the loop is supposed to end and where it checks the conditions. Sometimes u can skip most of the code that does not apply to the end condition of the loop. There is usually useless code written in that you do not need to understand to answer the question.

No comments: