Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

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

Computer Science
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Join Brainly to access

this expert answer

SIGN UP FOR FREE
C?java?what?
C
sorry I don't know C,if it was java,I was able to help u :(

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

:((
1.first store your secret no in some variable(i mean as a variable value). 2.then use a loop which run for five times. 3.inside that loop use the inputting statement to ask the user to enter the no and the use equality operator to check whether it is equal to your secret no . 4.if it is equal to your secret no then use break statement to end the loop. 5.and print whatever message you can. otherwise ask the user to enter the no again for guessing.

Not the answer you are looking for?

Search for more explanations.

Ask your own question