What C++ loops can provide both zero and 1-trip behavior?

This is a discussion on What C++ loops can provide both zero and 1-trip behavior? within the C++ Programming forums, part of the General Programming Boards category; I think its a forever loop but can a for loop also do this?
Pls help....

What C++ loops can provide both zero and 1-trip behavior?

"Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
-Bruce Lee

"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

in other words...
What I understood from the 1-trip loop is that you are taliking about the do/while loop.
do{
//statements
} while( condition )
the statements will be executed at least once even if the condidiotn is false.

All loops can be both counted and conditional, but for-loops are especially made to be counted and while-loops are made to be conditional.
Making for-loops conditional have no real purpose (it's way easier to use a while loop).

Thanks for all your posts but...

What C++ loops can provide both zero and 1-trip behavior

That is the question posted to me in the book. Its asking for one or more than one loop(ie. while, do/while, forever or for) these can only be the answers. I can only assume that it must be them all and is a trick question. I am still

I understand that there are 3 types of loops really but c++ provides 4 different loops.
1. while
2. do
3. for
and forever which is a simpified for loop eg;

Code:

for ( ; ;)
{
statement1;
if (condition) break;
statement2;
}

but actually there are 3.
Thanks for the posts, i am going to say all of them and see how that flies. weird question?

"Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
-Bruce Lee

Its FOREVER!

The correct answer is the forever loop because it eliminates redundant coding and it can be used in both times where statements must be executed 0 or more times and other statements must be executed 1 or more.
THANKS! for everyones input!!

"Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
-Bruce Lee