Advertisement
veronikaaa86

USD to BGN

Oct 17th, 2017
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace USD_to_BGN_Convertor
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Console.Write("USD = ");
  13.             double usd = double.Parse(Console.ReadLine());
  14.             double bgn = usd * 1.79549;
  15.             Console.WriteLine("BGN = " + Math.Round(bgn, 2));
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement