please am having a problem with my code below. am actually want is when a numebr lesser than 0 and greater than 99, it should output an error message till the correct value is entered for the three numbers. please would be very greatful if my code could be edited.. thanks
int _tmain(int argc, _TCHAR* argv[])
{
cout <<"\nweclome to c++\n";
cout <<"Enter three values in the range of 0 to 99.";
do
{
cout<<"\nvalue1: ";
cin >> nvalue1;
}
while (0 > nvalue1|| nvalue1 > 99);
do
{
cout<<"\nvalue2: ";
cin>> nvalue2;
}
while (0 > nvalue2||nvalue2 > 99 );
do
{
cout<<"\nvalue3: ";
cin>> nvalue3;
}
while (0 > nvalue3||nvalue3 > 99 );