Skip to main content

Posts

Showing posts with the label when you choose which loop

#loop #typesofloop What is loop | How to use loop | Type of loop | comp...

What is loop | Types of loop | When should you choose loop | when you decide to good for loop | What is the need of loop. If you want to know about the loop than learn to hear. I am going to introduce the loop. Q1.What is loop  Ans: Loop is a technique to execute a block of statements multiple times. we can if you want to execute the statement multiple times then keep this statement inside the loop. through the loop, we can reduce the length of the program and the complexity of the code. types of loop. Types of the loop:    Basically, the loop is two types of 1.exit control loop and the other one is 2.entery control loop    1.Exit control loop-        The loop which is control after execution than goes for the exit control loop.        like- do-while loop          class A{                     public static void main...