wes d2a2ba9e15 first commit | преди 4 години | |
---|---|---|
.. | ||
README.md | преди 4 години | |
code.cpp | преди 4 години | |
unitTest.cpp | преди 4 години |
by CppPythonDude tags: logic, language_fundamentals
An int boolean is same as a normal boolean, just 1 = true and 0 = false. Make a function that returns an int boolean opposite of an int boolean given (flip the int boolean). Examples flipIntBool(1) ➞ 0 flipIntBool(0) ➞ 1 Notes N/A
An int boolean is same as a normal boolean, just 1 = true
and 0 = false
.
Make a function that returns an int boolean opposite of an int boolean given (flip the int boolean).
flipIntBool(1) ➞ 0
flipIntBool(0) ➞ 1
N/A