csharp how to use if and else
Code Example - csharp how to use if and else
string text = Console.ReadLine();
if(text == "yes")
{
Console.WriteLine("Correct!");
}
else
{
Console.WriteLine("Incorrect!");
}