Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

general

What is do until loop?

Sarvech Qadir

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

A do until loop is used when a programmer wants to repeat statements until a condition becomes true. You can check the condition at the start or end of the loop.

Condition checked at the start of the loop

Do Until condition
// check condition on every iteration. If false, continue executing the statements.
   statements

When the do until loop starts, the loop is terminated if the condition becomes true.

However, if the condition is false, the statements inside the loop are executed, and the process is repeated.

RELATED TAGS

general

CONTRIBUTOR

Sarvech Qadir
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring