-2
promit
3y

Help me pls

Comments
  • 3
    U dumb lol
  • 4
    That'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.
  • 3
    Don't you have friends to help you? also, choose a different career path.
  • 1
    If you need help with this, I'm sorry but programming just isn't for you.
  • 2
  • 3
    Polynomials are determined by their coefficients.

    Adding two polynomials means adding their coefficients.
  • 0
    Do your fucking homework yourself, you lazy dumbass. Nobody wants future co-workers like you.
  • 1
    I 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.
Add Comment