while s=gets.chop\x0d a=s[b=s.length-1]\x0d s[b]=s[0]\x0d s[0]=a\x0d puts s\x0d end
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page