c++ do while inside another do while

Is it possible to put a do while inside another do while? If so, could someone show me how it works?
Yes. You can nest them (and any other control flow) to any level:

1
2
3
4
5
6
7
do {
    some code;
    do {
        some more code;
    } while (inner condition);
    maybe more code;
} while (outer condition);

thanx
Topic archived. No new replies allowed.