kacchi #260(2007/07/06 12:56 GMT) [ Scheme ] Rating0/0=0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/env gosh (define *max* 100000000) (define (func n b) (let ((quo (quotient n 10))) (if (zero? quo) (modulo n 10) (+ (* (func quo b) b) (func (modulo n 10) b))))) (define (foo x) (cond ((zero? (modulo (func x 13) x)) x) ((> x *max*) 'over) (else (foo (+ x 1))))) (print (foo 10))
Rating0/0=0.00-0+
[ reply ]
kacchi
#260()
[
Scheme
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]