Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. int caseSwitch = 1;
  8.  
  9. switch (caseSwitch)
  10. {
  11. case 1:
  12. Console.WriteLine("Case 1");
  13. break;
  14. case 2:
  15. Console.WriteLine("Case 2");
  16. break;
  17. default:
  18. Console.WriteLine("Default case");
  19. break;
  20. }
  21. }
  22. }
  23. // The example displays the following output:
  24. // Case 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement