Advertisement
Guest User

Untitled

a guest
Dec 4th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace czw12
  8. {
  9. class Klasaglowna
  10. {
  11. public static void Main()
  12. {
  13. string x;
  14. System.Console.WriteLine("podaj x do wyboru masz 1 lub 2");
  15. x = System.Console.ReadLine();
  16.  
  17. switch (x)
  18. {
  19. case "1":
  20. {
  21. System.Console.WriteLine("wybrales1");
  22. break;
  23. }
  24.  
  25.  
  26. case "2":
  27.  
  28. {
  29. System.Console.WriteLine("wybrales2");
  30. break;
  31. }
  32.  
  33. default:
  34. {
  35. System.Console.WriteLine("podales inna liczbe");
  36. break;
  37. }
  38. }
  39.  
  40. }
  41.  
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement