题目描述
Problem Statement
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.
Input
The input is given from Standard Input in the following format:
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.
Sample Input 1
3 9 2
Sample Output 1
3 5 7 9
The arithmetic sequence with first term 3, last term 9, and common difference 2 is (3,5,7,9).
Sample Input 2
10 10 1
Sample Output 2
10
The arithmetic sequence with first term 10, last term 10, and common difference 1 is (10).
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
3 9 2
样例输出
3 5 7 9