Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _01.Money
- {
- class Program
- {
- static void Main(string[] args)
- {
- int bitcoinCount = int.Parse(Console.ReadLine());
- double yoanCount = double.Parse(Console.ReadLine());
- double commision = double.Parse(Console.ReadLine());
- double bitcoinBGN = 1168;
- double yoanUSD = 0.15;
- double dollarBGN = 1.76;
- double euroBGN = 1.95;
- double bitcoin = bitcoinCount * bitcoinBGN;
- double yoan = yoanCount * yoanUSD;
- yoan *= dollarBGN;
- double sumInEuro = (bitcoin + yoan) / euroBGN;
- double sumPerCent = sumInEuro * (commision / 100);
- double result = sumInEuro - sumPerCent;
- Console.WriteLine($"{result :f2}");
- }
- }
- }
Add Comment
Please, Sign In to add comment