Post History
Ruby, 13 bytes According to the rules, programs should read from STDIN and output to the STDOUT. This is my solution: p gets.to_i&1 Try this online!
Answer
#1: Initial revision
# [Ruby](https://www.ruby-lang.org/), 13 bytes According to the rules, programs should read from STDIN and output to the STDOUT. This is my solution: ```ruby p gets.to_i&1 ``` **[Try this online!](https://ato.pxeger.com/run?1=m72kqDSpcsGCpaUlaboWawsU0lNLivVK8uMz1QwhYlCpBUsMjYy5IGwA)**