What is the difference between while and for loop-00754

Online Quiz This subjective question is related to the book/course vu cs504 Software Engineering - I. It can also be found in vu cs504 Mid Term Solved Past Paper No. 1.

Question 1: What is the difference between while and for loop?
Answer:
when number of iterations known we use for loop otherwise we will use while loop

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background