blob: 21431e7786b7e19abb1395d7cf6049298b77c062 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
(define n (read))
(display (string-length (number->string n)))
(display " ")
(define (digitsum n) (if (> n 0)
(+ (modulo n 10) (digitsum (quotient n 10)))
0))
(display (digitsum n))
(newline)
|