Nội dung:
Write a program to convert each line of string into the reverse string. The reverse string is the string containing the re-arranged characters of the original string in the reverse order, for example:
“Hello World!” è “!dlroW olleH”
Input
The input contains several lines of string. A line of string does not exceed 100 characters.
Output
For each line, print out the reverse string.
Sample Input
|
Sample Output
|
Hello World!
ACM-ICPC VietNam 2016
radar level kayak
LAST LINE
|
!dlroW olleH
6102 maNteiV CPCI-MCA
kayak level radar
ENIL TSAL
|
Xem hướng dẫn cách làm bài