This is a simple implementation of an IsEven method, in ArnoldC.
Just for fun. :-)
ArnoldC is a programming language based on the one liners of Arnold Schwarzenegger movies.
Make sure you have Java installed.
Download the required 'ArnoldC.jar'
file.
> curl --output "./ArnoldC.jar" "http://lhartikk.github.io/ArnoldC.jar"
Compile it.
> java -jar ArnoldC.jar IsEven.arnoldc
Do not include any path characters in your file name (not even
'./'
at the beginning).
Run it.
> java IsEven
1
The number you are checking (if it is even or not) is located at the end of line #6.
DO IT NOW ISEVEN 0|1|2|3|etc
File: hello.arnoldc
IT'S SHOWTIME
TALK TO THE HAND "hello world"
YOU HAVE BEEN TERMINATED
Compile and run.
> java -jar ArnoldC.jar hello.arnoldc
> java hello
hello world