#include<stdio.h>
#include<conio.h>
#include<iostream.h>
void main()
{
int n;
clrscr();
cout<<"Enter any number = ";
cin>>n;
long fact=1;
for(iint i=1;i<=n;i++)
fact=fact*i;
cout<<"Factorial"<<n<<" = "<<fact;
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........