I am new to C# and this code always returns 0.00 and I don't know what is the reason. Could anyone help? It is a console program and a possible input is
sofia
1500
the result should be 120.00
using System;
namespace TradeComissions
{
class TradeComissions
{
static void Main(string[] args)
{
var town = Console.ReadLine().ToLower();
var amount = double.Parse(Console.ReadLine());
double result = 0.0;
if(town == "sofia")
{
if (amount >= 0 && amount <= 500)
{
result = amount * (5 / 100);
}
else if (amount >= 500 && amount <= 1000)
{
result = amount * (7 / 100);
}
else if (amount >= 1000 && amount <= 10000)
{
result = amount * (8 / 100);
}
else if (amount > 10000)
{
result = amount * (12 / 100);
}
}
Console.WriteLine("{0:f2}", result);
}
}
}