Answers for "how to write and in an if statement in c#"

C#
1

C# how to use if and else

string text = Console.ReadLine();
if(text == "yes")
{
    Console.WriteLine("Correct!");
}
else
{
    Console.WriteLine("Incorrect!");
}
Posted by: Guest on September-30-2021

Code answers related to "how to write and in an if statement in c#"

C# Answers by Framework

Browse Popular Code Answers by Language