Created
November 15, 2012 06:45
-
-
Save yao2030/4077067 to your computer and use it in GitHub Desktop.
conver roman numeral numbers to arabic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define (arabic sent) | |
(if (= (count sent) 1) | |
(roman-value (first sent)) | |
(if (< (roman-value (first sent)) (roman-value (first (bf sent)))) | |
(+ (roman-value (first sent)) (- (first (bf sent))) (arabic (bf (bf sent)))) | |
(+ (roman-value (first sent)) (arabic (bf sent)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rememer the argument is a word, not a sent, just a typo in the program