Advertisement
Guest User

cab.cpp

a guest
Oct 22nd, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement