PRF04STRING04 - String - trim
Create a program that allows user to enter a text, then removes whitespace from the left side and right size of a string, removes all 2 whitespaces from inside that string and print it out.
Input
text text
Output
text text
Example 1
Input: Lap trinh can ban C Output: Lap trinh can ban C
Example 2
Input: Information Technology Output: Information Technology
Example 3
Input: Cong nghe thong tin Output: Cong nghe thong tin
Added by: | khanhvh |
Date: | 2020-11-04 |
Time limit: | 1s-100s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |