Solution for Checking Credit Cards
===
This is a ruby script that accepts credit card numbers and checks the type of card and it's validity and then returns the result. The problem is based on Luhn algorithm.
Please Enter The List Of Credit Card Numbers (one set of numbers per line) and add string END at the last.