It looks like you're new here. If you want to get involved, click one of these buttons!
Hello I'm Sal
Completely new to programing and here to give it my best!
I'm Trying to make (Yes) answer if statment , also respond to Yes answer in lower case (yes)?
while (!participantsAnswerNotYes)
{
string participantsAnswer = Console.ReadLine();
if (participantsAnswer == "Yes")
Console.WriteLine(" Great!\n LET'S GO " + participantName + "!");
}
else if (participantsAnswer == "No")
Console.WriteLine(" No problem " + participantName + " feel free to comeback when ready. ");
else
Console.WriteLine(" " + participantName + ", A Yes or No will suffice.");
Comments
I'm Trying to make (Yes) answer if statment , also respond to Yes answer in lower case (yes)?
while (!participantsAnswerNotYes)
{
string participantsAnswer = Console.ReadLine();
if (participantsAnswer == "Yes")
{
Console.WriteLine(" Great!\n LET'S GO " + participantName + "!");
}
else if (participantsAnswer == "No")
{
Console.WriteLine(" No problem " + participantName + " feel free to comeback when ready. ");
}
else
{
Console.WriteLine(" " + participantName + ", A Yes or No will suffice.");
}
}