摘要:
1 public class exercise02{ 2 public static void main(String[] args){ 3 4 /* 5 猴子吃桃子问题:有一堆桃子,猴子第一天吃了其中的一半,并多吃了一个! 6 以后每天猴子都吃其中的一半,然后再多吃一个。当到第10天时, 7 想再 阅读全文
摘要:
1 public class Recursion01{ 2 public static void main(String[] args){ 3 T t1 = new T(); 4 t1.test(4);//输出什么? n=2 n=3 n=4 5 int res = t1.factorial(5); 阅读全文