Using just basic math that you can write on paper (ie, not any software specific tools/features/algorithms) can you help me think of a formula that will do this?
I need to input an integer and return either a 1 or a 0. Input of 0 should return 0, and any other input should always return 1.
I realize for coding purposes I could just use an "if" statement that always returns 1 or 0 depending on whether n == 0.