I just can't seem to get it to work.

I'm trying to make a while loop where the user would input 3 integers,

and if any of the integers are the same, then the loop repeats the body again.

To terminate the loop, a Boolean function will take the integers as arguments, and

will not end until it is true, where it would then go to step 2, which is simply ordering the integers, highest to lowest.

I have that step worked out fine.

I just can't seem to get the boolean to work the way asked.

For that matter, I'm not really sure how to put it into a while loop without getting errors

bool is_different(int x, int y, int z) { if (x != y && y != z) { return true; } else { return false; }

That is my boolean function. Not even sure if that's right or not...

Anyways. Any help would be greatly appreciative.

Even just a step in the right direction. Thanks