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

PROGRAMMING:Remove extra space

Luz5年前 (2021-05-10)题库440
This topic requires reading a line of string, remove the first and last of the extra space output.
###Input format:
A string, unlimited length, to end with a newline, but the program requires reading no more than 30.
###Output format:
First output the read string in a pair of [], and then output the string after removing the first and last spaces in the next line of a pair of [].
###Input example:
```in
Xiangyang, Hubei
```
###Output example:
```out
[Xiangyang, Hubei]
[Xiangyang, Hubei]
```







answer:If there is no answer, please comment