#C2383. Print Indented String
Print Indented String
Print Indented String
Given a string s
, print each character of the string on a new line. The first character is printed without any leading dots. Each subsequent character is preceded by an increasing number of dots. Specifically, for the i-th character (0-indexed), print i
dots followed by the character.
For example, if s = "hello"
, the output should be:
This problem will test your ability to manipulate strings and output formatting based on input.
inputFormat
The input consists of a single line containing the string s
. The string may include spaces and other printable characters.
outputFormat
Output each character of the string s
on a separate line. The i-th line (0-indexed) should contain i
dots ('.') immediately followed by the i-th character of the string.
hello
h
.e
..l
...l
....o
</p>