Half String - 2
Write a program that prints the second half of the given input string.
You can assume that the length of the input string will always be an even number.
Input
The first line of input is a string.
Output
The output should be a string.
Explanation
In the given string
messages, the length of the string is 8. The last 4 characters i.e The second half of the string is ages.
So the output should be
ages.
Sample Input 1
messages
Sample Output 1
ages
Sample Input 2
time
Sample Output 2
me
Comments
Leave a comment