Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- using namespace std;
- int main()
- {
- string creditcard, wait;
- cout << "Welcome to the BIN Validator!\n";
- cout << "Enter your credit card to verify your bank:";
- cin >> creditcard;
- cout << "The length of credit card is: " ;
- cout << creditcard.length();
- if (creditcard.substr(0,2) == "34"){
- cout << "\nYou are using American Express.\n";
- }
- cout << "\nenter any key to quit: ";
- cin >> wait;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement