Sollicitatievraag bij Enable Professional Services

What is for loop and while loop?

Antwoord op sollicitatievraag

Anoniem

12 apr 2023

In For loop, first the variable is initialised then condition is given and if condition is true then we keep on increasing the value of variable. In while loop, it continues to run till the condition remains true.