Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 455 Bytes

README.md

File metadata and controls

10 lines (10 loc) · 455 Bytes

addding n polynomials

Dynamically allocates memory for an array of polynomials using calloc().
Allows the user to input the number of polynomials to be added through 'n'.
Reads the coefficients and degrees of each term of the polynomial from the user and pushes it onto the p[] - array of structures named POLYNOMIAL.
Adds the polynomials together and stores the result in a new polynomial.
Prints the resulting polynomial.