0
Ask user think of a no. then you need to guess that no.then find whether that guess is too far or near and count the attempts
4 ответов
0
Something like this
https://code.sololearn.com/cNPCUY1om9YM/#java
Just ask if you got any question about the code
0
if we do not want to use math. random neither scanner class in Java then what do we write
0
You can use the Random class:
Random rand = new Random();
and then
rand.nextInt(10);
Try it out yourself, then you learn best
0
I made the code for you..
The Scanner its a must because the user will enter a number.
The Random class will only give you the random number.
https://code.sololearn.com/cNPCUY1om9YM/#java