Advertisement
Ismailtsikalov

USD to BGN

Mar 23rd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. using System;
  2.  
  3. namespace USD_to_BGN
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double usd = double.Parse(Console.ReadLine());
  10.             double bgn = usd * 1.79549;
  11.             Console.WriteLine("{0:F2}", bgn);
  12.             Console.WriteLine(Math.Round(usd * 1.79549D, 2));
  13.  
  14.            
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement