Question: Write code for a case statement.Answer: switch (n){ case 1: x=1; break; case 2: x=2; break; default: goto case 1; } |
Is it helpful?
Yes
No
Most helpful rated by users:
- Name 10 C# keywords.
- What is public accessibility?
- .NET Stands for?
- What is private accessibility?
- What is protected accessibility?