Computer Science, asked by Anonymous, 10 months ago

Explain:

1. Loops and its type

2. Difference between While Loop and do-while Loop

50 points (:​

Answers

Answered by amijan696
0

Answer:

1. Loops and its type

Explanation:

In computer science, a loop is a programming structure that repeats a sequence of instructions until a specific condition is met. Programmers use loops to cycle through values, add sums of numbers, repeat functions, and many other things. ... Two of the most common types of loops are the while loop and the for loop.

Answer:2

Here, the main difference between a while loop and do while loop is that while loop check condition before iteration of the loop. On the other hand, the do-while loop verifies the condition after the execution of the statements inside the loop. Furthermore, the while loop is known as the entry-controlled loop.

Answered by omsamarth4315
3

Answer:

1. there are mainly two types of loops :-

➡️ Entry Controlled loops: In this type of loops the test condition is tested before entering the loop body. For Loop and While Loop are entry controlled loops..................

➡️ Exit Controlled Loops: In this type of loops the test condition is tested or evaluated at the end of loop body................

2. while loop and do - while loop:-

➡️ the main difference between a while loop and do while loop is that while loop check condition before iteration of the loop. On the other hand, the do-while loop verifies the condition after the execution of the statements inside the loop..............

Explanation:

hope it helps ✔✔

Similar questions