سلام بچه ها این با زبان C++ نوشته شده کسی میتونه اینو برام C# کنه بلد نیستم من....
PHP:
#include<iostream.h>
int fact(int n)
{
if(n==1)
return 1;
else
return n*fact(n-1);
}
void main()
{
int n;
cout<<"vard konid adad mord nazara:";
cin>>n;
cout<<fact(n);
}