# include & lttime.h & gt
Use namespace std
int main()
{
int num,a;
srand(time(0));
num = rand()% 100+ 1; // 1~ 100 randomly generates a number.
cout & lt& ltnum & lt& ltendl
While (number)
{
Cout & lt& lt user entered a number: ";
CIN & gt; & gta;
If (a> number)
{
Cout & lt& lt "greater than the number of troops" < & ltendl
}
else if(a & lt; Numbers)
{
Cout & lt& lt "less than the given number" endl
}
other
{
num = num-a;
Cout & lt& lt "Bingo!" & lt& ltendl
}
}
Returns 0;
}
Hmm ~ ~ ~ ~ Why did you give a satisfactory answer? I cried. Look at me ~ ~ ~