Advertisement
AvengersAssemble

Untitled

Sep 5th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. for(int i=0; i>=0; i++)
  2. {
  3. int price=0;
  4. Console.WriteLine("Enter cup size blabla:");
  5. string cupSize = Console.ReadLine();
  6. switch(cupSize)
  7. {
  8. case ("small"):
  9. case("Small"):
  10. price=15;
  11. break;
  12.  
  13. case("medium"):
  14. case("Medןum"):
  15. price=20;
  16. break;
  17.  
  18. case("large"):
  19. case("Large"):
  20. price=25;
  21. break;
  22.  
  23. default:
  24. Console.WriteLine("Invalid blabla");
  25. break;
  26. }
  27. if(price != 0)
  28. Console.WriteLine("blabla " +price +"ISL");
  29.  
  30. Console.WriteLine("Press 1 for main menu\nPress 0 to exit");
  31. int action = int.Parse(Console.ReadLine());
  32. if(action == 0)
  33. Console.WriteLine(1/action);
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement