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

PROGRAMMING:Output the number within a that can be divided by B

Luz5年前 (2021-05-10)题库416
This topic requires reading in two non-zero positive integers a and B not exceeding 100, and then outputting all the numbers that can be divided by B in (0, a).
###Input format:
Input two non-zero positive integers a and B in one line.
###Output format:
For each group of inputs, output all the numbers in (0, a] that can be divided by B in one line. The numbers are separated by spaces, and there is no space after the last number.
If there is no such number, output "none."
###Input sample 1:
```in
37 5
```
###Output sample 1:
```out
5 10 15 20 25 30 35
```
###Input sample 2:
```in
37 40
```
###Output sample 2:
```out
None.
```






answer:If there is no answer, please comment