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

PROGRAMMING:Find the number of digits of an integer and the sum of all digits

Luz5年前 (2021-05-10)题库404
For a given positive integer n, find its digits and the sum of its digits.
###Input format:
Enter a positive integer n on a line that does not exceed $$10 ^ 9 $.
###Output format:
Output the number of digits of N and the sum of its digits in one line, separated by a space.
###Input example:
```in
three hundred and twenty-one
```
###Output example:
```out
3 6
```






answer:If there is no answer, please comment