java递归计算阶乘-CSDN博客

网站介绍:文章浏览阅读97次。@SpringBootTestclass TestApplicationTests { @Test public void factorialTest() { for (int counter = 0; counter <= 10; counter++) { System.out.printf("%d! = %d\n", counter, recursiveFactorial(counter));