#C7733. Snake Case to Camel Case Conversion
Snake Case to Camel Case Conversion
Snake Case to Camel Case Conversion
You are given a list of variable names in snake_case
format. Your task is to convert each of these names into camelCase
format according to the following rules:
- The first word remains in lowercase.
- For each subsequent word, the first letter is capitalized while the rest remain in lowercase.
For example, converting hello_world
yields helloWorld
.
You need to read the input from standard input (stdin
) and output the results to standard output (stdout
), with each converted name printed on a new line.
inputFormat
The first line contains an integer n, the number of variable names. The next n lines each contain a single string representing a variable name in snake_case
format.
outputFormat
Output n lines, each containing the corresponding variable name converted to camelCase
.
3
hello_world
this_is_camel_case
convert_to_camel_case
helloWorld
thisIsCamelCase
convertToCamelCase
</p>