Квартално магазинче C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace daSiEbe
{
class Program
{
static void Main(string[] args)
{
string town = Console.ReadLine();
string product = Console.ReadLine();
double quantity = double.Parse(Console.ReadLine());
double result = 0;
if (town == "Sofia")
{
if (product == "coffee")
{
result = quantity * 0.50;
}
else if (product == "beer")
{
result = quantity * 0.80;
}
else if (product == "beer")
{
result = quantity * 1.20;
}
else if (product == "sweets")
{
result = quantity * 1.45;
}
else
{
result = quantity * 1.60;
}
}
else if (town == "Plovdiv")
{
if (product == "coffee")
{
result = quantity * 0.40;
}
else if (product == "beer")
{
result = quantity * 0.70;
}
else if (product == "beer")
{
result = quantity * 1.15;
}
else if (product == "sweets")
{
result = quantity * 1.30;
}
else
{
result = quantity * 1.50;
}
}
else
{
if (product == "coffee")
{
result = quantity * 0.45;
}
else if (product == "beer")
{
result = quantity * 0.70;
}
else if (product == "beer")
{
result = quantity * 1.10;
}
else if (product == "sweets")
{
result = quantity * 1.35;
}
else
{
result = quantity * 1.55;
}
Console.WriteLine(result);
}
}
}
}
Здравейте колеги това е кода ми може ли някой да ми помогне judge ми дава само 6 точки, не мисля че е чак толкова зле, немога да разбера къде съм объркал, моля помогнете
Много ти Благодаря !!! Бях започнал да се отчайвам
