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

PROGRAMMING:Find a positive integer whose sum of all digits within 1000 is n

Luz5年前 (2021-05-10)题库441
Output a positive integer whose sum of all digits within 1000 is n. for example, if the input n is 6, then the sum of all digits of 105 is 1 + 0 + 5 = 6, and the sum of all digits of 123 is 1 + 2 + 3 = 6, both of which meet the requirements. Output 6 columns per row and align them to the right.
###Input format:
N is entered by the user
###Output format:
Output 6 columns per row and align them to the right.
###Input example:
```in
six
```
###Output example:
```out
See the figure below
```
![ Capture. PNG] (~ / 05bc1d16-718d-4893-917b-362bd369abad. PNG)







answer:If there is no answer, please comment