Relative Content

Tag Archive for ccs50

Floating point exception (core dumped) error cs50 credit problem

I’m working on cs50 and I’m getting this error when trying to run. The program asks the user for a credit card number and then reports (via printf) whether it is a valid American Express, MasterCard, or Visa card number, using luhns algorithm and the requirements for each card. source code is below