0

Write in java with using loop

Write a program that generates a random number between 1 and 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high, try again.” If the user’s guess is lower than the random number, the program should display “Too low, try again.” The program should use a loop that repeats until the user correctly guesses the random number.

19th Feb 2021, 6:10 AM
Muhammad Hamza
Muhammad Hamza - avatar
4 Respostas
+ 1
Show your attempt.
19th Feb 2021, 6:38 AM
Sanjyot21
Sanjyot21 - avatar
+ 1
Ok bro
19th Feb 2021, 6:50 AM
Muhammad Hamza
Muhammad Hamza - avatar
0
First i write code then if any logical or syntax error occur then i show my code😶
19th Feb 2021, 6:51 AM
Muhammad Hamza
Muhammad Hamza - avatar