PROBLEM 5 : SEQUENTIAL NUMBERS
The sequential numbers are the numbers which are sorted
with special order. For instance the numbers 1, 2, 3 ... 8, 9, 10 are started
with the number 1 and ends with the number 10. Difference of the current number
and the next number is 1. The code obtains the first number, final number and
difference of the current number with the next number as input.
Input
The first line of the input contains an integer N (1 ≤ N
≤ 5), the number of test cases. Following the first line are the test cases.
Each line of a test case contains 3 integer numbers separated by a single
space. The third number is non-negative integer number.
The input must be read from standard input.
Output
The output of the program should display as shown at
below.
The output must be written to standard output.
Sample
Input
|
Sample
Output
|
3
1 10 1
90 9 9
-50 100 50
|
1 2 3 4 5
6 7 8 9 10
90 81 72
63 54 45 36 27 18 9
-50 0 50
100
|
Problem Setter : Jamal Othman, UiTM
Pulau Pinang