Guest User

Untitled

a guest
Sep 21st, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data