#include #include using namespace std; int main() { //Where is 100 East 42nd Street? int number {100}; int street {42}; //assume East side if (number < 0) { cerr << "The address number must be positive.\n"; return EXIT_FAILURE; } if (number < 100) { cout << "between Fifth and Park (or Fourth)\n"; } else if (number < 200) { cout << "between Park and Third\n"; } else if (number < 300) { cout << "between Third and Second\n"; } else if (number < 400) { cout << "between Second and First\n"; } else if (number < 500) { cout << "between First and York (or A)\n"; } else if (number < 600) { cout << "between A and B\n"; } else { cerr << "The address number " << number << " must be in range 1 to " << 599 << " inclusive.\n"; return EXIT_FAILURE; } return EXIT_SUCCESS; }