answersLogoWhite

0


Best Answer

// prob not what you are looking for since it just eliminates the if statement but

// is still using a boolean operator

bool areEqual = (value1 0);

You might want to clarify the question. Can you use boolean operators? I don't know how you can get around that.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Check whether two values or equal or not without using if?
Write your answer...
Submit
Still have questions?
magnify glass
imp