Example 80: Verify a Credit Card Number
Learn how to verify a credit card number.
We'll cover the following
Problem
A credit card number is usually a 16-digit number. A valid credit card number would satisfy the rules explained in the illustration below:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.