//Mario Jesus Arroyo Garduņo 9888569-9 //Lenguajes tecnicos II Programa 7 // Programa que resuelve el factorial de un numero // mediante recursividad. #include #include long factorial (long); int i,numero; void main (void) { clrscr(); cout << "Limite del factorial : "; cin >> numero; for (i = 0 ; i <= numero ; i++) { cout << "\nEl factorial de " << i << " es = "; cout << factorial (i); } getch(); } long factorial(long x) { if (x > 1) return x * factorial( x - 1); else return x; }