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

PROGRAMMING:Calculation of number

Luz5年前 (2021-05-10)题库425
We need to find the number with the following properties (including the natural number n of input)
First, enter a natural number n ($$n / le1000 $$), and then process the natural number as follows:
Without any treatment;
Add a natural number to the left of it, but the natural number cannot exceed half of the original number;
After adding the number, continue to process according to this rule until the natural number can not be added
###Input format:
1 natural number n ($$n / le1000 $$)
###Output format:
1 integer, which represents the number with the property.
###Input example:
```in
six
```
###Output example:
```out
six
```







answer:If there is no answer, please comment