Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 7 lines (7 sloc) 0.15 kb
1 2 3 4 5 6 7
(defun pro16 (n)
  (labels ((rec (num sum)
(if (zerop num)
sum
(rec (truncate (/ num 10))
(+ sum (rem num 10))))))
    (rec n 0)))
Something went wrong with that request. Please try again.