How to check if a number is narcissistic in scheme (R5RS)?

前端 未结 0 1541
醉梦人生
醉梦人生 2020-12-29 05:29

I was wondering why the application is not a procedure? This is the code I am using.

(define (num-digits? x) (if (< x 10) 1 (+ 1 (num-digits? (/ x 10)))))

(

相关标签:
回答
  • 消灭零回复
提交回复
热议问题