22
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
string statementType = "switch";
8
9
switch (statementType)
10
{
11
case "if.else":
12
Console.WriteLine("if...else statement");
13
break;
14
case "ternary":
15
Console.WriteLine("Ternary operator");
16
break;
17
case "switch":
18
Console.WriteLine("switch statement");
19
break;
20
}
21
}
22
}
Cached Result