while (small < large && large > 0
&& small < 65535)
{
small++;
if (small %
skip == 0) // skip the decrement?
{
cout << "skipping on
" << small << endl;
continue;
}
if (large ==
target) // exact match for the
target?
{
cout << "Target
reached!";
break;
}
large-=2;
}
// end of while loop