Advertisement
sivancheva

HotelRoom

May 4th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5. public static void Main()
  6. {
  7. var month = Console.ReadLine();
  8. var nights = int.Parse(Console.ReadLine());
  9. double priceStudio = 0;
  10. double priceApp = 0;
  11.  
  12. if (month == "May" || month == "October" )
  13. {
  14. priceStudio = 50.0*nights;
  15. priceApp = 65.0*nights;
  16. Console.WriteLine("Apartment: {0:f2} lv.", priceApp);
  17. Console.WriteLine("Studio: {0:f2} lv.", priceStudio);
  18. }
  19.  
  20. else if (month == "June" || month == "September" )
  21. {
  22. priceStudio = 75.2*nights;
  23. priceApp = 68.7*nights;
  24. }
  25. else if (month == "June" || month == "September" )
  26. {
  27. priceStudio = 76.0*nights;
  28. priceApp = 77.0*nights;
  29. }
  30.  
  31.  
  32. if (nights > 7 )
  33. {
  34.  
  35. }
  36.  
  37.  
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement