nvnnaidenov

Money - School Book 2.1

Jul 27th, 2021
822
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class Money
  4. {
  5.     static void Main()
  6.     {
  7.         int bitcoins = int.Parse(Console.ReadLine());
  8.         double uans = double.Parse(Console.ReadLine());
  9.         double comission = double.Parse(Console.ReadLine());
  10.  
  11.         double bitcoinsInLeva = bitcoins * 1168;
  12.         double uansInleva = uans * 0.15 * 1.76;
  13.         double totalInEuro = (bitcoinsInLeva + uansInleva) / 1.95;
  14.         double percentComission = comission / 100;
  15.         double temp = totalInEuro * percentComission;
  16.         double result = totalInEuro - temp;
  17.  
  18.         Console.WriteLine(result);
  19.     }
  20. }
RAW Paste Data