hit counter

Computer Science

Question

What is the minimum number of iteration in a 'do-while' loop

2 Answer

  • The minimum number of iterations in a do while loop is 1.

    This is because it first executes the loop and then checks for the condition so even if condition is not satisfied the loop runs one iteration.

  • The minimum number of iterations in a do-while loop is 1.

    • In most computer programming languages, do-while loop is a control flow statement that uses co-de block at least once, then removes the block, or stops performing it, depending on the given boolean state at the end of the block.
    • The do while creating contains a process symbol and status. First, the co-de inside the block is killed, and then the situation is checked. When the situation is right the co-de inside the block is killed again. This repeats until the situation is false. Because it does while the traps check the situation after the block is removed.

You May Be Interested