Perl, 7 bytes say<>%2 Prints 1 for odd and 0 for even.
posted 6mo ago by jhnc
# Perl, 7 bytes ``` say<>%2 ``` Prints 1 for odd and 0 for even.