#K92287. Snake to Camel Case Conversion
Snake to Camel Case Conversion
Snake to Camel Case Conversion
Given a string in snake_case format, convert it to camelCase. In camelCase formatting, the first word is in lowercase and each subsequent word starts with an uppercase letter. For example, converting "hello_world" results in "helloWorld".
Constraints: The input string contains only lowercase letters and underscores. There will be no leading or trailing underscores and no consecutive underscores.
Note: Use standard input (stdin) to read the input and standard output (stdout) to display the result.
inputFormat
The input consists of a single line containing a snake_case string.
Example:
hello_world
outputFormat
The output is a single line containing the camelCase version of the input string.
Example:
helloWorld## sample
hello
hello