Write a function reverse(s) that reverses the character string s. Use it to write a program that reverses its input a line at a time.
reverse(s)
s
Keep each line's newline at the end, if it has one.
No submissions yet