Questions tagged [luhn]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
50 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 ...
0
votes
1answer
34 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 ...
0
votes
1answer
24 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 ...
0
votes
1answer
56 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
0
votes
2answers
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 < ...
1
vote
1answer
296 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] ...