Average Character by twobit

while""do
a=io.read()s=0
for i=1,#a do s=s+a:byte(i)end
print(a.char(s/#a-.49))end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page