#include using namespace std; void polyprint(int d,int f[10]); void polyadd(int f[10],int g[10], int ans[10]); void polysub(int f[10],int g[10], int ans[10]); void polymultiply(int f[10],int g[10],int ans[20]); void polydiv(int n, int a[10], int m, int b[10], int q[10], int r[10]); int lc(int a[10]); int deg(int a[10]); int max(int a, int b) { if(a<=b) return b; return a; } int main() { int degf; int degg; int f[10]; int g[10]; int h[10]; int hsub[10]; int h2[20]; int q[10]; int r[10]; for(int i=0;i<20;i++) h2[i]=0; std::cout <<"Enter the degree of the polynomial:"; std::cin >>degf; std::cout <<"Enter the coefficients (a_0,...a_n):\n"; for(int i=0;i<=degf;i++) { std::cout <<"a["<>f[i]; } for(int i=degf+1;i<=9;i++) { f[i]=0; } std::cout <<"Enter the degree of the second polynomial:"; std::cin >>degg; std::cout <<"Enter the coefficients (a_0,...a_n):\n"; for(int i=0;i<=degg;i++) { std::cout <<"a["<>g[i]; } for(int i=degg+1;i<=9;i++) { g[i]=0; } for(int i=0;i<10;i++) { q[i]=0; r[i]=0; } cout <<"f(x)="; polyprint(degf,f); cout <<"lc(f)="<