Skip to content

Latest commit

 

History

History
10 lines (5 loc) · 186 Bytes

File metadata and controls

10 lines (5 loc) · 186 Bytes

A simple script to check validity of credit card number using Luhn Algorithm.

Running script on console

ruby luhn.rb ARGV

example :

ruby luhn.rb "4111-1111-1111-11?2"