Post History
PHP, 36 bytes <?php $x=(int)fgets(STDIN);echo$x%2; Try it online! Outputs 1 if odd and 0 if even.
Answer
#1: Initial revision
# [PHP], 36 bytes <!-- language-all: lang-php --> <?php $x=(int)fgets(STDIN);echo$x%2; [Try it online!][TIO-kte5el3a] Outputs `1` if odd and `0` if even. [PHP]: https://php.net/ [TIO-kte5el3a]: https://tio.run/##K8go@P/fxr4go0BBpcJWIzOvRDMtPbWkWCM4xMXTT9M6NTkjX6VC1cj6/38jUwA "PHP – Try It Online"