fbinnzhivko

Money

Jul 18th, 2016
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2. class Program
  3. {
  4.     static void Main()
  5.     {
  6.         int bitkoins = int.Parse(Console.ReadLine());
  7.         double kitaiskaQUNAAA = double.Parse(Console.ReadLine());
  8.         double comisns = double.Parse(Console.ReadLine());
  9.  
  10.         double total = bitkoins * 1168 + kitaiskaQUNAAA * 0.15 * 1.76;
  11.         double com = (total /1.95) * (comisns /100);
  12.  
  13.         Console.WriteLine("{0:}", (total / 1.95) - com);
  14.     }
  15. }
Add Comment
Please, Sign In to add comment