Tareas y Proyectos
Sunday, January 08, 2006
Programa en C++ "Fatctorial de un numero"
//factorial de un numero
#include
#include
main()
{
int n;
double fact=1;
cout<<("Escribe un numero:");
cin>>n;
int f=1;
for (int f=1;f<=n;f++)
fact*=f;
cout<<"El factorial"<
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment