//rewrite the below code to implement
polynomial multiplications using one
loopCode
using namespace std;
#include <iostream>
int main()
{
int a[3]={1,3,12};
int b[2]={3,2};
int mul[5]={0};
for(int j=0;j< 2;j++)
for(int i=0;i<3;i++)
mul[i+j]+=a[i]*b[j];
for(int k=3;k>=0;k--)
cout<<mul[k]<<"x^"<<k<<" + ";
//rewrite the above code to implement
polynomial multiplications using one loop
return 0;
}