LANGUAGE
do loop
Tests after the body, which therefore runs at least once on normal entry.
Formal Syntax & Structure
csharp syntaxcsharp
do { ... } while (condition);Working Example
Example Snippetcsharp
int n = 0; do { n++; } while (n < 1);Tests after the body, which therefore runs at least once on normal entry.
do { ... } while (condition);int n = 0; do { n++; } while (n < 1);