// i/o example #include using namespace std; int main() { short int Min=0, Max=1000 ; string mystring= "Is it greater, equal, or less than "; string g="greater", l="less", x, e="equal"; cout << "Please think of a number between " ; cout << "one and one thousand inclusive. " ; while(x!=e){ cout << mystring << ((Min+Max)/2) << endl; cin >> x; if(((Min == Max) || (Min == Max+1)) ) { cout << "Nice try buddy, but you're lying. " << endl; cout << "The number you were thinking of is " << endl; cout << Max; x = e; };; if (x==g) { Min=((Min+Max)/2); // cout <