Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (alquiler km)
- (cond
- [(<= km 100) (+ 100000 (* 100000 0.16))]
- [(and (> km 100)(<= km 500)) (+ 100000 (* 0.16(+ 100000(* (- km 100) 3000))) (* (- km 100) 3000))]
- [(> km 500) (+ (* (- km 500)1000) (* 0.16 (+ 100000(* (- km 100) 3000))) 100000)]
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement