C#C
C#2y ago
Mathall

Why do you need to use else statements?

Sorry if this is a dumb question, I am still new but wouldn't
C#
if(answer = true) {
Console.WriteLine("Correct!")
} else {
Console.WriteLine("Incorrect!")
}

Just be exactly the same as:
C#
if(answer = true) {
Console.WriteLine("Correct!")
} 
Console.WriteLine("Incorrect!")
Was this page helpful?