Here is the general structure of an if statement in C#
using System;
class Program {
static void Main() {
if (condition) {
// code block
}
else if (otherCondition) {
// code block
}
else {
// code block
}
}
}We'll explore full pattern matching later.
What will this print?
Ask the AI if you need help understanding or want to dive deeper in any topic