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

PROGRAMMING:4 digits that meet specific conditions

Luz5年前 (2021-05-10)题库439
```
A 4-bit positive integer satisfying the following conditions:
It consists of numbers 1 to 9; The numbers are different;
The numbers are arranged in descending order from left to right;
And the former of two adjacent numbers cannot be the multiple of the latter;
And these four digits can't all be odd or even.
Program input two 4-bit integers a and B, and output all the numbers between the interval [a, b] that meet the above conditions.
```
###Input example:
```in
5000 7000
```
###Output example:
```out
five thousand four hundred and thirty-two
six thousand four hundred and thirty-two
six thousand five hundred and thirty-two
six thousand five hundred and forty-three
```







answer:If there is no answer, please comment