0
how to write a code of matching a random number from a user input number using if-else statements.
simple basic code is needed.
2 Respostas
+ 1
You mean something like a "Guess the number" game?
If so, then try to find examples in Code Playground, many had written such codes 👍
0
Basic Pseudo code would be like
Random = some random number
Input = user_input
If Random == Input :
Guess is correct
else:
Guess is wrong
You can make a code based on this pseudo code and change it
however you like... You can also search other similar codes for reference.