Create a program that simulates a guessing game.
The program prompts for a number and check it against an internal one.
Example: secret_number=123;
I have a secret number.
Guess the secret number: 345
Your guess was too high.
You get 4 more tries.
Guess the secret number: 100
Your guess was too low.
You get 3 more tries
Guess the secret number: 150
Your guess was too high.
You get 2 more tries.
Guess the secret number: 140
Your guess was too high
You get 1 more tries
Guess the secret number: 120
Your guess was too low.
Sorry you get no more chances.
Note: you can use the ran

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

C?java?what?

C

sorry I don't know C,if it was java,I was able to help u :(

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.