# NOT RUN {
VerifyCheckDigit("12340", "Verhoeff") # TRUE
VerifyCheckDigit("21340", "Verhoeff") # FALSE
VerifyCheckDigit("13240", "Verhoeff") # FALSE
VerifyCheckDigit("12430", "Verhoeff") # FALSE
VerifyCheckDigit("12304", "Verhoeff") # FALSE
# }
Run the code above in your browser using DataLab