What is looping and why do we need loops? Differentiate between while and for
loop?
Answers
Answered by
2
Explanation:
The 'while' loop used only when the number of iteration are not exactly known. If the condition is not put up in 'for' loop, then loop iterates infinite times. ... In while loop if initialization is done during condition checking, then initialization is done each time the loop iterate.
Similar questions
English,
20 days ago
Physics,
20 days ago
Social Sciences,
1 month ago
Math,
1 month ago
Science,
7 months ago