10048: ABC340 —— A - Arithmetic Progression
[Creator : ]
Description
Print an arithmetic sequence with first term $A$, last term $B$, and common difference $D$.
You are only given inputs for which such an arithmetic sequence exists.
You are only given inputs for which such an arithmetic sequence exists.
Input
The input is given from Standard Input in the following format:
```
$A$ $B$ $D$
```
```
$A$ $B$ $D$
```
Output
Print the terms of the arithmetic sequence with first term $A$, last term $B$, and common difference $D$, in order, separated by spaces.
Constraints
- $1 \leq A \leq B \leq 100$
- $1 \leq D \leq 100$
- There is an arithmetic sequence with first term $A$, last term $B$, and common difference $D$.
- All input values are integers.
- $1 \leq D \leq 100$
- There is an arithmetic sequence with first term $A$, last term $B$, and common difference $D$.
- All input values are integers.
Sample 1 Input
3 9 2
Sample 1 Output
3 5 7 9
The arithmetic sequence with first term 3, last term 9, and common difference 2 is (3,5,7,9).
Sample 2 Input
10 10 1
Sample 2 Output
10
The arithmetic sequence with first term 10, last term 10, and common difference 1 is (10).