-->
当前位置:首页 > 题库

PROGRAMMING:Determine the end of a string

Luz5年前 (2021-05-10)题库461
Enter 2 strings to determine whether one of them ends with another
###Input format:
Input 2 lines, one string data for each line
###Output format:
If the first string ends with the second string, output the second string
If the second string ends with the first string, output the first string
If two strings are the ending characters of each other, output 'all'
If not, output 'no'
###Input example:
```in
abc123
one hundred and twenty-three
```
###Output example:
```out
one hundred and twenty-three
```







answer:If there is no answer, please comment