int x;
cout<<"ingrese el valor de x ";cin>>x;
const int DELTA = 0.00000001;
float x2 = x * x;
int n = 0;
float xexp = x; // Contiene el término x^n, al principio
// tiene el valor de x; entrando al ciclo
// su valor será x * x2 = x * x* x = x^3;
// después xexp * x2 = x^3 * x * x = x^5, etc.
float factimp = 1; // Tiene el factorial impar. Al comienzo
// tiene 1; al entrar al ciclo su valor será
// 1 * (n + 2) * (n + 3) = 1 * 2 * 3 = 3!
// en la siguiente iteración n se incrementa en 2
// y factimp es igual a 3! * (n + 2) * (n + 3)
// o sea 3! * 4 * 5 = 5!, etc
int signo = -1;
suma = x;
int termino = 1;
for (int n = 0; termino >= DELTA; n += 2) {
xexp *= x2;
factimp *= (n + 2) * (n + 3);
termino = xexp / ((n + 3) * factimp);
suma += signo * termino;
n += 2;
signo *= -1;
}