Note: (Restricted functionality due to obvious reasons!)
Minimal Code ( Raw-View ) :
#include<iostream.h>
#include<conio.h>
void main()
{
int fact (int);
int f,n;
cout<<"enter any number=";
cin>>n;
f = fact(n);
cout<<f<<endl;
getch();
}
int fact (int n)
{
int value=1;
if (n==1) return(value);
else
{
value = n*fact(n-1);
return(value);
}
}