Note: (Restricted functionality due to obvious reasons!)
Minimal Code ( Raw-View ) :
#include<iostream.h>
#include<conio.h>
class fact
{
public : int a,b,i;
int fxn2(a)
{
if(a>1)
{
for(i=a; i>=1; i--)
{b=a*fxn2(a-1);}
return(b);
}
else
return 1;
}
void show(){cout<<endl<<"The factorial = "<<b;}
}n;
void main()
{
cout<<" ** This program gets the factorial of the number you enter below **";
int x;
cout<<endl<<endl<<"Your number here : ";
cin>>x;
cout<<"So here we go.....";
getch();
n.fxn2(x);
n.show();
}