#include <iostream.h>
#include <conio.h>
int main()
**
long int x,c1=1,c2=50,c3=100;
cout<<"think about a number from 1-99 in your mind!\n"<<endl;
do
**
cout<<"Is your number: bigger=1, equal=0, smaller=-1 than "<<c2<<"?\n";
cin>>x;
if(x==1)
**
c1=c2;
c2=(c2+c3)/2;
}
else if(x==0)
**
cout<<"Your number is "<<c2<<"!\n";
break;
}
else if(x==-1)
**
c3=c2;
c2=(c2+c1)/2;
}
}while(c2<100);
getch();
return 0;
}