Advertisement
Spocoman

Change Bureau

Nov 23rd, 2021
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ChangeBureau
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.  
  10.             double bitcoin = double.Parse(Console.ReadLine());
  11.             double yuan = double.Parse(Console.ReadLine());
  12.             double commision = double.Parse(Console.ReadLine());
  13.             double sum = (bitcoin * 1168 + yuan * 0.15 * 1.76) / 1.95;
  14.             double total = sum - commision * sum / 100;
  15.  
  16.             Console.WriteLine($"{total:F2}");
  17.         }
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement