#C4414. Remove Spaces
Remove Spaces
Remove Spaces
Given a string containing alphabetic characters and spaces, remove all the space characters while preserving the original order of the letters.
The program should read the input string from standard input (STDIN) and output the resulting string to standard output (STDOUT) with all spaces removed. For example, if the input is Hello World
, the output should be HelloWorld
.
This problem tests simple string manipulation and is ideal for beginners.
inputFormat
A single line containing the input string. The string may include uppercase and lowercase alphabetic characters along with spaces.
outputFormat
Output the string after all space characters have been removed.## sample
Hello World
HelloWorld