Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- var month = Console.ReadLine();
- var nights = int.Parse(Console.ReadLine());
- double priceStudio = 0;
- double priceApp = 0;
- if (month == "May" || month == "October" )
- {
- priceStudio = 50.0*nights;
- priceApp = 65.0*nights;
- Console.WriteLine("Apartment: {0:f2} lv.", priceApp);
- Console.WriteLine("Studio: {0:f2} lv.", priceStudio);
- }
- else if (month == "June" || month == "September" )
- {
- priceStudio = 75.2*nights;
- priceApp = 68.7*nights;
- }
- else if (month == "June" || month == "September" )
- {
- priceStudio = 76.0*nights;
- priceApp = 77.0*nights;
- }
- if (nights > 7 )
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement