I need to make an algorithm that gets 3 different numbers, and if it receives repeated numbers, it informs an error message.
My program is all working properly, but when I put the line to warn of the error I try to use Or
and it does not work. Here's what I'm typing
if (z==x) or (y==z) or (x==y);
cout << "\nErro. Os valores devem ser diferentes. Tente novamente: \n" << endl;
Even though I have an easier way than or
, could you kindly tell me how to or
insert in C ++?
According to Code :: Blocks, the program expects a primary expression before or
.