A simple program in C that check if a number is a valid credit card number.
- Luhn algorithm check
- Support to Mastercard (only for cards starting with 51, 52, 53, 54 and 55), Amex and Visa
- CS50 Library for C:
https://cs50.readthedocs.io/libraries/cs50/c/
- Using GCC
gcc credit.c -lcs50 -o credit