递归求1-100之和
摘要:递归求1-100之和 /* *求1-100之和 */ function sum(num1, num2) { var num = num1 + num2; if (num2 + 1 > 100) { return num; } else { return sum(num, num2 + 1) } }
阅读全文
posted @ 2021-04-09 18:00
posted @ 2021-04-09 18:00
posted @ 2020-12-10 17:15
posted @ 2020-12-10 15:40
posted @ 2020-01-01 11:32
posted @ 2018-09-20 21:08
posted @ 2018-09-11 09:57
posted @ 2018-09-11 09:56