Problem Description
Polynomial description is as follows:
1-1/2 + a third - quarter + + 1/5-1/6...
Now please take the first n of the polynomial and,
Input
The input data is composed of 2 rows, the first is a positive integer m (m<100), said the number of test cases, the second line contains a positive integer m, for every integer (might as well as n, n
The Output
For each test case n, the required output polynomial n items and before each test case output a line, the results for two decimal places,
The Sample Input
2
1
2
The Sample Output
1.00
0.50
CodePudding user response:
Thank invited, homework assignments to do yourself, so simple questions to think about