Skip to content

A credit card number is 16 digits long. The last digit is the control number. This program doubles all the odd number digits and finds the sum of all the doubled single digits and the even number digits. The result is divided by 10. When the digit after the decimal is subtracted from 10, the result must the control number.

Notifications You must be signed in to change notification settings

SalmanAsh/Credit-Card-Number-Validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

About

A credit card number is 16 digits long. The last digit is the control number. This program doubles all the odd number digits and finds the sum of all the doubled single digits and the even number digits. The result is divided by 10. When the digit after the decimal is subtracted from 10, the result must the control number.

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages