标签:
class Program
{
static void Main(string[] args)
{
Console.WriteLine("请录入数值");
int i = int.Parse(Cpmsole.ReadLine());
int iJ = DiGui( i );
Console.WriteLine(iJ);
}
//方法
static int DiGui(int i)
{
if( i == 1)
{ return i; }
else
{ returu i * DiGui(i-1); }
}
}
标签:
原文地址:http://www.cnblogs.com/gsj2ronger918/p/4495275.html