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