#include <iostream> using namespace std; int main() { double x,sinx=0.0,jbf,j=1.0; cin>>x; jbf=x; int k=1,l=1; double n=1; while(j>=1e-6) { j=jbf/n; sinx=sinx+k*j; jbf=jbf*x*x; k=-k; n=n*(l+1)*(l+2); l+=2; } cout<<"sin(x) = "<<sinx<<endl; return 0; }