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

PROGRAMMING:For a given positive integer n, find its digits and the sum of its digits.

Luz5年前 (2021-05-10)题库375
Given a positive integer n, find its digits and the sum of its digits.
###Input format:
Give a positive integer n in one line.
###Output format:
Output the number of digits of positive integer n and the sum of all digits in one line.
###Input example:
Here is a set of inputs. For example:
```in
twenty million two hundred and one thousand two hundred and twenty-four
```
###Output example:
The corresponding output is given here. For example:
```out
8 13
```







answer:If there is no answer, please comment