Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Executes the body at least once, then checks the condition. The condition is tested after each iteration.
do {
// executes at least once
} while (condition);int choice;
do {
cout << "1.Add 2.Delete 3.Exit\n";
cin >> choice;
// process choice
} while (choice != 3);Checks condition BEFORE execution. Body may run 0 times.
Checks condition AFTER execution. Body runs at least 1 time.