Skip to main content

Questions tagged [luhn]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
16 views

can anyone help error check my luhns algorithm code?

i wrote this version of the credit card number checking code and it still gives me an error when i check it. apparently, it validates 4111111111111113 and 4222222222223 as visa numbers when theyre not....
sam's user avatar
  • 1
0 votes
1 answer
91 views

Question about Pset1 - credit

I had work on the credit for 3 hours, and I had reach to most of the function - and I checked that the number received from: Luhn (a) last digit(c) and digit count (cc) are right by using ...
Anti-Entropy's user avatar
0 votes
1 answer
42 views

ProblemSet1 - Another Credit.c issue - Can't convert the floating value of my variables into an integer value

I was almost finishing my code when I got stuck with a strange problem. I've asked a question a few hours ago and someone answered, so I manage to fix that issue. But unfortunelly I got stuck in ...
KevinWGS's user avatar
0 votes
1 answer
39 views

ProblemSet1 - Credit.c - Issues assigning the sum of the numbers on a variable

So I coded the first lines of the Luhn's Algorithm and tried to print the values of some of my variables to be sure they were doing exactly what I want it. For my surprise they weren't. And I were ...
KevinWGS's user avatar
0 votes
1 answer
78 views

pset6 credit the sum is not end with zero and check count right how

the Luhn’s Algorithm in 378282246310005 = 48 and in 371449635398431 = 76 so how not INVALID it must end with zero so the two number must be INVALID
Mahmoud Mohamed's user avatar
0 votes
2 answers
61 views

pset1 - Cannot print returned value

I ran compile this: char get_credit_card_status(long long credit_card_number, char Luhn_validity)//, char credit_card_status) { char credit_card_status = 0; if (((credit_card_number < ...
Nocxy's user avatar
  • 1
1 vote
1 answer
495 views

Luhn algorithm error | pset1

when i try to check pset1/credit i get these errors: identifies 369421438430814 as INVALID expected "INVALID\n", not "AMEX\n" try to check it according Luhn's algorithm: Checking [369421438430814] ...
Stork Marabou's user avatar