When is a do-while appropriate?

language-agnostic, loops

Solution

When you need something done at least once, but don't know the number of times prior to initiating the loop.

Problem

When is a do-while the better choice over other types of loops? What are some common scenarios where its better than others? I understand the function of a do-while, but not when to use it.

Original source

Related problems