solución a n > 90
#include <iostream> using namespace std; double factorial (int n); double suma(double a, double b); int main() { int n1; cout<<"Ingrese N:"; cin>>n1; cout<<"El factorial es: "<<factorial(n1); cout<<endl<<"La suma del numero ingresado y su factorial es:"<<suma(n1,factorial(n1)); return 0; } //funcion double factorial (int n) { double fact=1; if(n>1) { for(int i=2;i<=n;i++) fact=fact*i; } return fact; } double suma(double a,double b) { return a+b; }