0

I am looking to allow the user to submit a polynomial such as +3x^6 +2x^2 +9x^0 into a set of variables which would be sent to a linked list.

What is the best way to separate the variables to allow them to be looked at individually. So that:

C E

3 6

2 2

9 0

The user is also prompted to enter the number of coefficients they are using.