Chapter+4_Ex+4.25

code format="cpp"
 * 1) include
 * 2) include

using namespace std;

int main(int argc, char *argv[]) {   int n=50,highest=100, lowest=1; char k;   cout<<"Please note that Correct = c, high = h, lower = l"<> k;   cout << endl; if(k == 'h'){ highest = n;   n = lowest + (n-lowest)/2; }   else if(k == 'l'){ lowest = n;   n = lowest+(highest-lowest)/2; }

}   cin.get; system("PAUSE"); return EXIT_SUCCESS; } code