Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
81 views

Pset1 valid visa number as invalid

I built the first part to check whether a number is a valid AMEX number and used the same logic to check for Visa number but the codes don't seem to work as I tried with several valid visa numbers and ...
Ching's user avatar
  • 3
0 votes
2 answers
70 views

Why does this code sometimes give me a different sum when i run it for the same cc number?

I'm working on the credit problem in pset1, and this is only part of what should be done. All I'm trying to do here is to multiply every other number (from the cc number entered by the user) by two, ...
John's user avatar
  • 7