Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Trip
- {
- class Trip
- {
- static void Main(string[] args)
- {
- decimal euro = decimal.Parse(Console.ReadLine());
- var season = Console.ReadLine();
- decimal suma = 0.0m;
- if (season == "summer")
- {
- if (euro >= 10 && euro <= 100)
- {
- suma = euro * 0.3;
- Console.WriteLine("Somewhere in Bulgaria");
- Console.WriteLine("Camp - {0:f2}", suma);
- }
- else if (euro > 100 && euro <= 1000)
- {
- suma = euro * 0.4;
- Console.WriteLine("Somewhere in Balkans");
- Console.WriteLine("Camp - {0:f2}", suma);
- }
- else if (euro > 1000 && euro <= 5000)
- {
- suma = euro * 0.9;
- Console.WriteLine("Somewhere in Europe");
- Console.WriteLine("Hotel - {0:f2}", suma);
- }
- }
- else if (season == "winter")
- {
- if (euro >= 10 && euro <= 100)
- {
- suma = euro * 0.7;
- Console.WriteLine("Somewhere in Bulgaria");
- Console.WriteLine("Hotel - {0:f2}", suma);
- }
- else if (euro > 100 && euro <= 1000)
- {
- suma = euro * 0.8;
- Console.WriteLine("Somewhere in Balkans");
- Console.WriteLine("Hotel - {0:f2}", suma);
- }
- else if (euro > 1000 && euro <= 5000)
- {
- suma = euro * 0.9;
- Console.WriteLine("Somewhere in Europe");
- Console.WriteLine("Hotel - {0:f2}", suma);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement