#include<iostream.h>
#include<conio.h>
#include<fstream.h>
int fact ( int n )
{
if ( n==1 )
return 1 ;
else
return n*fact( n-1);
}
int main ()
{
int num ;
cout<<"\n\n Enter The Number : ";
cin>>num;
cout<<"\n\n\n\t\t FactoriaL : "<< fact( num );
cout<<"\n\n\n";
}
- Blogger Comment
- Facebook Comment
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment