348,832 views
45 votes
45 votes
In QBasic, create a number guessing challenge. Your program should generate a random number from 1-

100 (inclusive). Let the user guess a number. The program should let the user guess until they get the
correct number. After each input, the program should tell the user whether they guessed the correct
number, or if they guessed too high or too low. While the user is entering guesses, the program should
keep a count of the number of guesses that it takes to get the correct number. After the user guesses
the correct number, the program should congratulate the user and tell them how many guesses it took
them to get the correct number. By the way, if the user chooses carefully, they should be able to guess
the number within 7 tries. But, your program should still let the user keep guessing until they guess the
correct number

In QBasic, create a number guessing challenge. Your program should generate a random-example-1
User Jonathan Chiu
by
2.7k points

1 Answer

17 votes
17 votes

Answer:

yes

Step-by-step explanation:

User Sidhantunnithan
by
3.2k points