标签:递归
#include <stdio.h> #include <stdlib.h> int n_k(int n,int k) { if(k) return n*(n_k(n, k-1)); return 1; } int main() { int n = 0; int k = 0; scanf("%d", &n); scanf("%d", &k); int mul = n_k(n, k); printf("%d\n", mul); system("pause"); return 0; }
本文出自 “打印九九乘法表” 博客,请务必保留此出处http://10324228.blog.51cto.com/10314228/1688232
标签:递归
原文地址:http://10324228.blog.51cto.com/10314228/1688232