Trade Comissions
Къде ми е грешката ?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Trade_Comissions
{
    class Program
    {
        static void Main(string[] args)
        {
            var comission = -1.0;
            if (town == "sofia")
            {
                if (0 <= sales && sales <= 500) comission = 0.05;
                else if (500 < sales && sales <= 1000) comission = 0.07;
                // TODO: check the other price ranges …
            }
            else if (town == "varna") // TODO: check the price ranges …
else if (town == "plovdiv") // TODO: check the price ranges …
                if (comission >= 0)
                    Console.WriteLine("{0:f2}", sales * comission);
                else Console.WriteLine("error");
        }
    }
}