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