```
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{ clrscr();
int n,x,i,j;
float p,fact=1.0,sum=0.0;
cout<<"\n\tEnter the number: ";
cin>>n;
cout<<"\n\n\tEnter the Value of \'x\': ";
cin>>x;
for(i=1;i<=n;i++)
{ for(j=(2*j-1);j>0;j--)
{ fact=j*fact;
if(i%20==0)
p=(-1)*pow(x,(2*i-1));
else
p=pow(x,(2*i-1));
sum+=p/fact;
}
}
cout<<"\n\tThe sum is "<<sum;
getch();
}
```