double ConvertUSDToGBP(float InUSD)
return Math.Round(InUSD / 1.26f, 2);
double ConvertGBPToUSD(float InGBP)
return Math.Round(InGBP * 1.26f, 2);
float AskForCurrencyAmount()
Console.WriteLine("How much would you like to convert?");
if (!float.TryParse(Console.ReadLine(), out Value))
public void AskForExchange()
Console.WriteLine("Would you like to convert from USD to GBP (1) or GBP to USD (2)?");
string Answer = Console.ReadLine();
Console.WriteLine("Here is the converted amount £" + ConvertUSDToGBP(AskForCurrencyAmount()).ToString());
Console.WriteLine("Here is the converted amount $" + ConvertGBPToUSD(AskForCurrencyAmount()).ToString());
public static void Main()
CurrencyConverter ConverterSystem = new CurrencyConverter();
ConverterSystem.AskForExchange();