Use the while just | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Use the while just

Write a program that randomly generates an integer between 0 and 100, inclusive. The program prompts the user to enter a number continuously until the number matches the randomly generated number. For each user input, the program tells the user whether the input is too low or too high, so the user can choose the next input intelligently. Here is a sample run:

6th Jul 2018, 5:03 PM
Manar Rabayah.
Manar Rabayah. - avatar
5 Respuestas
6th Jul 2018, 5:34 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 5
Manar Rabayah. hmmm then idk
6th Jul 2018, 5:41 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 5
Could you grab the time? If so, you could generate a number from it: (minutes*60+seconds)%100
6th Jul 2018, 5:58 PM
John Wells
John Wells - avatar
+ 1
and the cood in java not pathien
6th Jul 2018, 5:42 PM
Manar Rabayah.
Manar Rabayah. - avatar
0
i can't use the random becuse in the exam 😔
6th Jul 2018, 5:40 PM
Manar Rabayah.
Manar Rabayah. - avatar