Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Journey
- {
- class Program
- {
- static void Main(string[] args)
- {
- double budget = double.Parse(Console.ReadLine());
- string season = Console.ReadLine().ToLower();
- string destination = string.Empty;
- double spentMoney = 0.0;
- if (budget <= 100)
- {
- if (season == "summer") ;
- {
- spentMoney = 0.3 * budget;
- Console.WriteLine("Somewhere in Bulgaria");
- Console.WriteLine($"Camp - {spentMoney:f2}");
- }
- else if (season == "winter") ;
- {
- spentMoney = 0.7 * budget;
- Console.WriteLine("Somewhere in Bulgaria");
- Console.WriteLine($"Hotel - {spentMoney:f2}");
- }
- }
- if (budget <= 1000)
- {
- if (season == "summer")
- {
- spentMoney = 0.40 * budget;
- Console.WriteLine("Somewhere in Balkans");
- Console.WriteLine($"Camp - {spentMoney:f2}");
- }
- else if (season == "winter") ;
- {
- spentMoney = 0.80 * budget;
- Console.WriteLine("Somewhere in Balkans");
- Console.WriteLine($"Hotel - {spentMoney:f2}");
- }
- }
- if (budget > 1000)
- {
- if (season == "summer" || season == "winter") ;
- {
- spentMoney = 0.9 * budget;
- Console.WriteLine("Somewhere in Europe");
- Console.WriteLine($"Hotel - {spentMoney:f2}");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement