-->
当前位置:首页 > 题库

PROGRAMMING:Nomenclature

Luz5年前 (2021-05-10)题库426
In most programming languages, variable names cannot contain spaces. If the variable name we use is named by two or more words, we need to distinguish these words.
In general program design, there are two variable naming standards: snake mode and camel mode. Snake means words are written in lowercase letters and underlined between words (") Replace spaces; The camel mode refers to that the first letters of adjacent words are capitalized to distinguish the words.
For example, you want to define a variable to represent the sum of the numbers in an array, and use "sum of array" in English. We use the snake variable named: sum_ of_ array; The variable named by camera is called sumofarray.
Now, please convert a snake named variable to a camel named variable.
[data range]
For 100% of the data, the length of the input string is no more than 50, which only contains lowercase letters and ', The first and last characters cannot be underscores, and no two consecutive underscores appear.
###Input format:
The first line is a string representing the name of the variable named in snake mode.
###Output format:
The output is converted to the variable name named in the camelway.
###Input example:
Here is a set of inputs. For example:
```in
sum_ of_ array
```
###Output example:
The corresponding output is given here. For example:
```out
sumOfArray
```







answer:If there is no answer, please comment