ScratchData LogoScratchData
Back to scratchtc3's profile

Credit Card Check

SCscratchtc3•Created November 10, 2017
Credit Card Check
0
0
15 views
View on Scratch

Instructions

Press Space Enter Credit Card Number (all digits, no spaces, letters or punctuation) Hit Enter See Results!

Description

This uses the Luhn Formula, named after its inventor Hans Peter Luhn. It works by multiplying every other digit by 2, adding the digits together (if multiplying makes it a two digit number) and then adding all the digits together. If the result is divisible by 10, it's valid! More Info: https://www.creditcards.com/credit-card-news/luhn-formula-credit-card-number-system-1273.php https://www.creditcards.com/credit-card-news/assets/Luhn.pdf https://en.wikipedia.org/wiki/Luhn_algorithm

Project Details

Project ID185650412
CreatedNovember 10, 2017
Last ModifiedNovember 10, 2017
SharedNovember 10, 2017
Visibilityvisible
CommentsAllowed