i have a do while loop in my program. im just unsure of how to make it work.

i need it to continue doing the loop until the error is between -0.1 and 0.1

i have this so far, i may have the greater/lesser than signs wrong, or just set it up wrongly, but here is what i have

while ( -0.1 < ERRORC <  0.10  && -0.1 < ERRORD < 0.10 );

For a single error (ERRORC) it goes like this ...

do 
{
    // do something ...
}
while(-0.1 > ERRORC || 0.1 < ERRORC);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.