Guest User

cab.cpp

a guest
Oct 22nd, 2019
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<string.h>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. string str[ ] = { "area1", "area2", "area3", "area4" }, location;
  8.  
  9. cout<<"welcome to cab service"<<endl<<endl;
  10. cout<<"Enter location: ";
  11.  
  12. cin>>location;
  13. for(int i = 0; i < 4; ++i)
  14. {
  15. if(location == str[i])
  16. cout<<"coverage area"<<end;
  17. }
  18. return 0;
  19. }
RAW Paste Data