Input can be an integer or decimal number. Return the sum of the input. If a decimal number is encountered as input, the result will be rounded to one decimal place.
Sample Code:
function sumInput() {
// Enter your logic here...
}
Examples:
Input: 1,-2
Output: -1
Explanation: -1 is the result after summing up all the input numbers.
Input: 0,0.1,0.2
Output: 0.3
Explanation: 0.3 is the result after summing up all the input numbers.