c02p059.txt

来自「Data Abstraction & Problem Solving with 」· 文本 代码 · 共 14 行

TXT
14
字号
int fact(int n)// ---------------------------------------------------// Computes the factorial of a nonnegative integer.// Precondition: n must be greater than or equal to 0.// Postcondition: Returns the factorial of n; n is// unchanged.// ---------------------------------------------------{   if (n == 0)      return 1;   else      return n * fact(n-1);}  // end fact

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?