Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string.h>
- using namespace std;
- int main()
- {
- string str[ ] = { "area1", "area2", "area3", "area4" }, location;
- cout<<"welcome to cab service"<<endl<<endl;
- cout<<"Enter location: ";
- cin>>location;
- for(int i = 0; i < 4; ++i)
- {
- if(location == str[i])
- cout<<"coverage area"<<end;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement