Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
kamen69254yThat's as simple of an assignment as it can get for pretty much any language. If you can't do that, you'll be in deep shit for what you'll have to do next.
-
Polynomials are determined by their coefficients.
Adding two polynomials means adding their coefficients. -
Do your fucking homework yourself, you lazy dumbass. Nobody wants future co-workers like you.
-
p100sch14464yI would presume that you just don't know where to start. I would recommend that in case of the two polynomials being string inputs, to identify the different parts by splitting them at each occurrence of a plus signe and then check if an x or x^2 is present and within the extracted strings and parse the digits, 1 if no digit is present into a struct field or variable for each. Repeat the same for the next input add the components together and printf it.
Help me pls
question