This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <cs50.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <math.h> | |
// calculates the number of digits in the card number | |
int getCardDigits(long long card_num) | |
{ | |
int card_digits = (int)log10(card_num) + 1; |
NewerOlder