Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (multiplicacion a b)
- (cond
- [ (= b 1) a]
- [ (= b 0) 0]
- [else (+ a (multiplicacion a (- b 1) ) ) ]
- ))
- (define (elevar a b)
- (cond
- [ (= b 1) a]
- [ (= b 0) a]
- [else (* a (elevar a (- b 1) ) ) ]
- ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement