Read and Print a Complete Line
Given a string on a single line, read the complete line from standard input and print it exactly as received.
Preserve every character, including uppercase and lowercase letters, digits, spaces, and special characters. Do not remove leading or trailing spaces, collapse repeated spaces, or change letter case.
Input
The input contains a single complete line. The line may be empty.
Output
Print the complete line without changing any characters. Print a newline after the line as well.
Example 1:
Input:
Hello World
Output:
Hello World
Example 2:
Input:
AbC 123!
Output:
AbC 123!
Now Your Turn!
Pick the correct output for the given inputInput:
a b!
Still unsure what the problem is asking ?
Let’s go through a few more examples, step by step, to make it clearer.
Constraints:
- The line contains 0 to 105 characters.
- Characters are printable ASCII (codes 32–126), including spaces.