Verhoeff's Dihedral Check Digit

Input value (without check-digit) 
   Value with check-digit   
  Result of check 

This code was based on a web page at: