Monthly Archives: October 2015

Simple cat program

One of the most common standard tasks (especially when showcasing esoteric programming languages) is to implement a “cat program”: read all of STDIN and print it to STDOUT. While this is named after the Unix shell utility cat…

Quine / Reverse Quine

Write a complete program that takes a boolean or non-negative integer input. It must:

Output its own source code if the input value is falsy
Output its own source code in reverse if the input value is truthy

Your program …