// t1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include // clrscr y getch using namespace std; double factorial(int numero) { double respuesta=1; int i; if(numero==0) return 1; else { for(i=1;i<=numero;i++) respuesta=respuesta*i; } return respuesta; } int main() { float n; cout<<"\t\t\t\t\t\t\t\t\tE.S.C"; cout<<"\nINGRESE UN NUMERO PARA SACAR SU FACTORIAL..."; cin>>n; if(n<0 && n==int (n)) cout<<"\t\tEL FACTORIAL DE "<=0 && n==int (n)) cout<<"\t\tEL FACTORIAL DE "<