That depends on what you are trying to do.
Maybe this will help?
i dont think in general one loop will be faster than other.
Generally a for loop is used when you want to iterate over a variable.
That is clear from its own format
for (assign;check;increment)
although you are free to do anything during assign , check or continue
so you will use for loop for doing things like
for (x=z;x!=z;x++)
{
}
And while is used for things like
while(this_condition_is_true)
there is no restriction on wither loops, use what comforts you