A loop is code block which get iterated till the condition to terminate the loop is true which is also known the exist statement of the loop . if no condition is or exit statement is given to the loop then it becomes a indefinite loop either a programmer machine hang soon
Types of loops
1.for loop
2.Do While loop
3.While loop
4.for each loop
5. labeled loop
Comments
Post a Comment