There are three types of loops:

  • For loop: It is an open-ended loop. 
  • while loop: It is an entry control loop. 
  • do-while loop: It is an exit control loop. In the do-while loop, the set of statements will execute atleast once. 
Suggested Papers: