题目内容
(请给出正确答案)
[主观题]
计算1到n的和。
提问人:网友Lancelou
发布时间:2022-01-07
(A) (define (f product counter max-count)(f (* counter product) (counter 1) max-count ));
(B) (define (f product counter max-count)(cond ((>counter max-count) product)((<= counter max-count) (f (counter*product) (counter+ 1) max-count )) ));
(C) (define (f product counter max-count)(cond ((>counter max-count) product)((<= counter max-count) (f (* counter product) (counter 1) max-count )) ));
(D) (define (f product counter max-count)(cond ((>counter max-count) product)((<= counter max-count) (f product counter max-count )) ));
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!