【C语言】编写一个函数实现n^k,使用递归实现

#include <stdio.h>

int fuc(int x,int n)
{
	if(n!=1)
		return x*fuc(x,n-1);
	return 1;
	
}

int main()
{
	printf("%d
",fuc(3,4));
	return 0;
}

原文地址:https://www.cnblogs.com/yxwkf/p/5347412.html