03. Currency converter works ok on my PC, but on Judge I get zero points
Hi, sorry I have no BG keyboard :). Can you tell me what is wrong with my code? It works on my Visual Studio 2015, but when I upload to Judge there is no output result and I get no points :( Can you check if it works on yours??? Maybe I'm missing something
Thanks
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Currency_Converter
{
class Program
{
static void Main(string[] args)
{
double amount = double.Parse(Console.ReadLine());
string inputCurrency =(Console.ReadLine());
string outputCurrency =(Console.ReadLine());
double BGN = 1;
double USD = 1.79549;
double EUR = 1.95583;
double GBP = 2.53405;
double x = 0;
double y = 0;
/// Chooses input currency
if (inputCurrency=="BGN")
{ x = BGN; }
if (inputCurrency == "USD")
{ x = USD; }
if (inputCurrency == "EUR")
{ x = EUR; }
if (inputCurrency == "GBP")
{ x = GBP; }
///Chooses output currency
if (outputCurrency == "BGN")
{ y = BGN; }
if (outputCurrency == "USD")
{ y = USD; }
if (outputCurrency == "EUR")
{ y = EUR; }
if (outputCurrency == "GBP")
{ y = GBP; }
double result = (amount*x) / y;
Console.WriteLine($"{result:F2}{outputCurrency}");
}
}
}