Some numbers like 1,2,3,4,.... are provided from the command line. Considering them to be roots of a polynomial of that degree< equal to number of roots > , i was trying to find the coefficients of the constructed polynomial, i was using the concept of multiplication of two single degree polynomials.

for e.g if the numbers are 1,2 and3.

the P(x) == (x-1)(x-2)(x-3).

so if give 1 and 2 in the command line. the sample output should be 1 , -3, 2.

Please help me......