Personal computing discussed
Moderators: renee, SecretSquirrel, just brew it!
malebolgia wrote:It's a for loop where you write the control logic into the loop yourself, instead of having the compiler do it based on the loop statement. I don't personally think there's any reason to favor it over a for loop (which makes the intent more explicit), but if that's your assignment, so be it. (heck, the purpose might be to demonstrate the superiority of a for loop)I have to write a program that is (counter controlled while loop). My question is what is that?
Craig P. wrote:The problem is doing someone's homework for them, not helping them with it. If we just help (and carefully) then we will help them learn, which is after all the point of schoolwork. The problem when we do it for them is that they just copy it and don't learn anything.