c語言實現階乘

alexmaodali發表於2024-04-05
unsigned int factorial(unsigned int n){
	if(n == 0 || n == 1) return 1;
	if(n != 0){
		return factorial(n-1)*n;
	}
}

相關文章