递归和非递归分别实现求n的阶乘(不考虑溢出的问题)
//非递归方法
#include <stdio.h>
int Fac(int n,int* num)
{
while (n > 1)
{
*num = *num * n;
n
递归和非递归分别实现求n的阶乘(不考虑溢出的问题)
//非递归方法
#include <stdio.h>
int Fac(int n,int* num)
{
while (n > 1)
{
*num = *num * n;
n