Post History
MAWP, 8 bytes @!2P2WA: Try it! 1 for odd and zero for even. mawp doesn't have modulus, so it floor divides by 2, multiplies by 2 and subtracts from the input.
Answer
#1: Initial revision
# [MAWP], 8 bytes ``` @!2P2WA: ``` [Try it!][mawp_interp] [MAWP]: https://esolangs.org/wiki/MAWP [mawp_interp]: https://8dion8.github.io/MAWP/v1.1?code=%40!2P2WA%3A&input=24 1 for odd and zero for even. mawp doesn't have modulus, so it floor divides by 2, multiplies by 2 and subtracts from the input.