The first line contains a non-negative number N, the number of array elements (N<=100).
The second line contains the number b
Fill the array with elements equal to the quotient of the array element index divided by the number b. Array elements are fractional numbers
Sample input and output
Test number |
Input |
Output |
1 |
5
3 |
0.000000 0.333333 0.666667 1.000000 1.333333 |