Topic: About for and while loops
Can you tell me what is the REAL difference of FOR LOOP and WHILE LOOP?
I know both of them has to be executed until the condition is false..same thing when you're saying "It will run a specified number of times". Ive been looking around for answers over the internet but people keeps on saying that :
while loop - used for looping until a condition is satisfied and when it is unsure how many times the code should be in loop <------ HUH? even in FOR LOOPS it will run until a condition is satisfied or results to false. And in FOR LOOPS you're not also sure how many times it will run, that is if you didn't use a number.
for loop - used for looping until a condition is satisfied but it is used when you know how many times the code needs to be in loop.
I hope someone can give me a clear and precise answer. Thanks!
