#include<iostream.h> #include<conio.h> long fact(int); main() { clrscr(); int number; long factorial; cout<<\"\\n Enter the number = \"; cin>>number; factorial=fact(number); cout<<\"\\n n! = \"<<number<<\"!\"<<\" = \"<<factorial<<endl; getch(); return 0; } //---------------------------- fact(int) ------------------------------// long fact(int number) { long factorial=1; if(number==0 || number==1); else factorial=number*fact(number-1); return factorial; }