Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about luhn

Read more about luhn

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - luhn

When i use my code in local vscode its giving only 63 as answer but when i use a different online complier it works fine

This is a Luhn algorithm code and it works fine in an online complier but when I use it in my local vscode it is only giving 63 as output. I dont know if its a memory issue as it late long variable. i...
test-img

Karma0o7

c

integer

long-integer

function-definition

luhn

Votes: 0

Answers: 1

Latest Answer

The result depends on the size of the type long int that can be equal either to the size of the type int or to the size of the type long long int. So use the type long long int instead of the type lon...
test-img

Vlad from Moscow

my list value changing incorrectly - python

im trying to generate mastercard card number. requirements : first element must be 5 second element must be between 1 and 5 last element must be lcheck digit returned from luhn algorithm. i have check...
test-img

Samet Topal

python

luhn

Votes: 0

Answers: 1

Latest Answer

You can import copy and use generateCheckDigit(copy.copy(card_number)) as Alexey Larionov sais in comments "In Python if you pass to a function some complicated value, like class instance, list, ...
test-img

kpie

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved