Damm algorithm

From Fōrmulæ wiki
Jump to: navigation, search

This page is the answer to the task Damm algorithm in the Rosetta Code.

Description (from Rosetta Code)

The Damm algorithm is a checksum algorithm which detects all single digit errors and adjacent transposition errors.

Task

Verify the checksum, stored as last digit of an input.

Program

DammAlgorithmCode.png

Use cases

DammAlgorithmCases01.png