Advertisement
VZhelev

Parichki

May 30th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace SoftUni
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             short bitcoin = short.Parse(Console.ReadLine());
  14.             double chineseYuan = double.Parse(Console.ReadLine());
  15.             double com = double.Parse(Console.ReadLine());
  16.            
  17.             double euro = ((bitcoin * 1168.0d)/1.95d);
  18.             euro += ((chineseYuan * 0.15d) * 1.76d) / 1.95d;
  19.             com = (euro / 100) * com;
  20.            
  21.             Console.WriteLine("{0:F2}",euro - com);
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement