Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. string creditcard, wait;
  8. cout << "Welcome to the BIN Validator!\n";
  9. cout << "Enter your credit card to verify your bank:";
  10. cin >> creditcard;
  11.  
  12.  
  13. cout << "The length of credit card is: " ;
  14. cout << creditcard.length();
  15.  
  16. if (creditcard.substr(0,2) == "34"){
  17. cout << "\nYou are using American Express.\n";
  18.  
  19. }
  20.  
  21. cout << "\nenter any key to quit: ";
  22. cin >> wait;
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement