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 ConsoleApplication25
- {
- class Program
- {
- static void Main(string[] args)
- {
- double a = double.Parse(Console.ReadLine());
- string b = Console.ReadLine();
- double c = 0;
- if (b == "winter")
- {
- if (a <= 100)
- {
- c = 70 * 0.01 * a;
- Console.WriteLine("Somewhere in Bulgaria");
- Console.WriteLine("Hotel - {0:f2}", c);
- }
- else if (a>100 && a <= 1000)
- {
- c = 80 * 0.01 * a;
- Console.WriteLine("Somewhere in Balkans");
- Console.WriteLine("Hotel - {0:f2}", c);
- }
- else
- {
- c = 90 * 0.01 * a;
- Console.WriteLine("Somewhere in Europe");
- Console.WriteLine("Hotel - {0:f2}", c);
- }
- }
- if (b == "summer")
- {
- if (a <= 100)
- {
- c = 30 * 0.01 * a;
- Console.WriteLine("Somewhere in Bulgaria");
- Console.WriteLine("Camp - {0:f2}", c);
- }
- else if (a>100 && a <= 1000)
- {
- c = 40 * 0.01 * a;
- Console.WriteLine("Somewhere in Balkans");
- Console.WriteLine("Camp - {0:f2}", c);
- }
- else
- {
- c = 90 * 0.01 * a;
- Console.WriteLine("Somewhere in Europe");
- Console.WriteLine("Hotel - {0:f2}", c);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment