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