Example #1
0
        static void Main(string[] args)
        {
            Console.Write("Enter amount in Rupees: ");
            decimal Rupee, Dollar, Franc, Euro;

            Rupee  = decimal.Parse(Console.ReadLine());
            Dollar = Rupee * 0.0135107M;
            Franc  = Rupee * 0.0126123M;
            Euro   = Rupee * 0.0119623M;
            Console.OutputEncoding = System.Text.Encoding.UTF8;
            Console.WriteLine($"Dollar:{Dollar.ToString("C", new CultureInfo("en-US"))}");
            Console.WriteLine($"Frank: {Franc.ToString("C", new CultureInfo("de-CH"))}");
            Console.WriteLine($"Euro: {Euro.ToString("C", new CultureInfo("es-ES"))}");
        }