Requirements:
- Take an input on stdin including new lines / carriage returns of unlimited length (only bounded by system memory; that is, there is no inherent limit in the program.)
- Output the reverse of the input on stdout.
Example:
Input:
Quick brown fox
He jumped over the lazy dog
Output:
god yzal eht revo depmuj eH
xof nworb kciuQ
Shortest wins.
strrev– SHiNKiROU Jan 31 '11 at 6:46ƃop ʎzɐʃ ǝɥʇ ɹǝʌo pǝdɯnɾ ǝHxoɟ uʍoɹq ʞɔınΌ;-P – ninjalj Feb 4 '11 at 22:40