Home > Back-end >  Novice to solve
Novice to solve

Time:10-03

at a guess the word game, and then execute a time when the first number in the guess no hint,

And also can't guess the logarithm, 99 is too low, too high 100, depressed,,,,,,,,
Don't know where is wrong, please help!!!!!!!!!!!!!!!!!!!
# include & lt; stdio.h>
# include & lt; stdlib.h>
# include & lt; Ctime>
Void main ()
{
int a;
Srand ((unsigned) time (0));
A=rand () % 100;
Int b;
While (b!
=a){
Printf (" please guess a number! \n");
The scanf (" % d \ n ", & amp; B);
If (b> A)
Printf (" tut tut, it is a little bit high! \n");
The else
Printf (" tut tut, a bit low! \n");
}
Printf (" right!!!!!!!!! ");

}


CodePudding user response:

Int b;
While (b!
=a)
B is not the assignment,

CodePudding user response:

The input value to pay b line
  • Related