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 Money_BitCoin
- {
- class Program
- {
- static void Main(string[] args)
- {
- var bitCoin = double.Parse(Console.ReadLine());
- var chineYuan = double.Parse(Console.ReadLine());
- var charge = double.Parse(Console.ReadLine())/100;
- double bitcoinRate = 1168*bitCoin;
- double chineYuanRate = 0.15*chineYuan;
- double USDRate = 1.76;
- double EURRate = 1.95;
- var chargePercent = ((bitcoinRate+chineYuanRate*USDRate)/EURRate)*charge;
- var result = (((bitcoinRate + chineYuanRate * USDRate) / EURRate)-chargePercent);
- Console.WriteLine("{0:f2}",result);
- }
- }
- }
Add Comment
Please, Sign In to add comment