Flip the Integer Boolean

Published by Someone1 in

An int boolean is the 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

Watch a quick demo on how Edabit works.