While Loop: A while loop is an entry-controlled loop that continues executing as long as its condition remains true. It checks the condition before each iteration.
For Loop:A for loop is also an entry-controlled loop, but it has three parts - initialization, condition, and increment/decrement. It's often used when we know exactly how many times we want the loop to run.
Infinite Loop:An infinite loop is a loop that continues indefinitely because its exit condition is never met. It can be unintentional and cause the program to hang or crash if not handled properly.