Loops can be execute a block of code a number of times.
Types of Loop
In for loop is used to repeat the execution of the statements until a certain condition holds.
Flow Chart :-
Example:-Test it Now
In while loop check the condition is true,the code inside the while loop is executed.when the condition is false the loop will be stops
Example:- Print Fibonacci seriesTest it Now
In do while loop body of the loop is executed(Check) at first. Then the condition is evaluated. If the condition evaluates is true, the body of the loop inside the do statement is executed again.this process continues until the condition evaluates is to be false. Then the loop stops.
Example:- Print Even numbersTest it Now