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.
-
Notifications
You must be signed in to change notification settings - Fork 0
Dynamically allocates memory for an array of polynomials using calloc(). Allows the user to input the number of polynomials to be added. Reads the coefficients of each polynomial from the user. Adds the polynomials together and stores the result in a new polynomial. Prints the resulting polynomial.
sanjanatg/polynomial-addition
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Dynamically allocates memory for an array of polynomials using calloc(). Allows the user to input the number of polynomials to be added. Reads the coefficients of each polynomial from the user. Adds the polynomials together and stores the result in a new polynomial. Prints the resulting polynomial.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published