Computer Science, asked by SandipanD82, 1 month ago

Write down the syntax of three loop statements of C++​

Answers

Answered by Fattzzyyy
0

Answer:

Statement 1 sets a variable before the loop starts (int i = 0). Statement 2 defines the condition for the loop to run (i must be less than 5). If the condition is true, the loop will start over again, if it is false, the loop will end.

Answered by ushasingh9191
3

There are mainly two types of loops:

  1. 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.
  2. Exit Controlled Loops: In this type of loops the test condition is tested or evaluated at the end of loop body. Therefore, the loop body will execute atleast once, irrespective of whether the test condition is true or false. do – while loop is exit controlled loop.

❥ the above is the answer of your question

❥ hope that's helps you

Similar questions