hello i would like to ask you how to do such thing that if a user chooses no no how to make the program no longer execute the code and the program will end. because now after selecting the condition “no”, pressing the button continues the program and reads the following conditions and asks for “knock or poen”. (sorry for my english) :)
"$ dotnet run
What is your name?: ramas
Hello, ramas! Welcome to our story.
It begins on a cold rainy night. You’re sitting in your room a
nd hear a noise coming from down the hall. Do you go investiga
Type YES or NO
Not much of an adventure if we don’t leave our room!
Type OPEN or KNOCK