![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 25.01.2022 02:40 angel2939
Prompt the user to guess your favorite color. Using a while loop, if the user didn't guess your favorite color [pick one for this activity] then tell them they are incorrect, then ask them again. Whenever they guess the color correctly, output that they are correct and how many guesses it took them.
Create a variable and assign it the value of 1
Prompt the user to guess your favorite color
While their guess is not equal to your favorite color
Tell them they are incorrect
Prompt them to guess again
Add one to the variable above
Output to the user, they were correct and how many attempts it took using the variable
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 10:30, araminaara691
How can a user open a blank presentation? 1.on the file menu, click new, and then click recent templates 2.on the file menu, click new, and then click blank presentation 3. on the view menu, click templates, and then click recent templates 4. on the view menu, click samples, and then click blank presentation
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 17:20, Morehollie9428
What is the best assassins creed game?
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 19:30, carcon2019
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
You know the right answer?
Prompt the user to guess your favorite color. Using a while loop, if the user didn't guess your favo...
Questions in other subjects:
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.03.2020 10:20
![Konu](/tpl/images/cats/istoriya.png)
History, 05.03.2020 10:20
![Konu](/tpl/images/cats/en.png)
English, 05.03.2020 10:20
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.03.2020 10:20
![Konu](/tpl/images/cats/mat.png)
Mathematics, 05.03.2020 10:21
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/User.png)
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/health.png)