Differentiate between for loop and a while loop? What are it uses?

 Differentiate between for loop and a while loop? What are it uses?


For executing a set of statements fixed number of times we use for loop while when the number of iterations to be performed is not known in advance we use while loop.

Comments

Popular posts from this blog

Examine the collapse of Han. What factors explain how this occurred? How influential in Han Dynasty on Chinese History?

JAD Advantages and Disadvantages

Summarize effective communication strategies in organizational hierarchies, and review the role and relevance of the organizational grapevine