Computer Science, asked by PragyaTbia, 1 year ago

In while do loop, expression is executed first? State whether the statement is True (or) False And Justify it

Answers

Answered by afrujaKawsar48
3
here is yoyr answer
yes it's true that in while do loop expression is executed first.
hope it helps you
Answered by smartbrainz
2

In while do loop, expression is executed first is True Statement

Explanation:

  • A while do loop is a control flow statement that admits the code to be executed time and again on the basis of a boolean condition in most programming languages.
  • The condition/expression is checked, and if the condition/expression is valid, the code inside the block is performed. This will repeat until the condition/expression is incorrect.
  • Because while the loop tests the condition/expression before the block is performed, the control mechanism is often referred to as the pre-test loop.

Similar questions