Skip to content

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.

Notifications You must be signed in to change notification settings

sanjanatg/polynomial-addition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

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

No packages published

Languages