以下程序中使用了递推方式计算阶,计算结果正确。 int factorial(int n) { int res = 1; for (int i = 0; i < n; ++i) { res *= i; } return res; }A:对B:错正确答案:错误试卷来源:202506 CCF-GESP编程能力等级认证C++四级真题本卷相关题目题目 15879题目 15880题目 15881题目 15882题目 15883题目 15884在线做题 同科目题库