Sichanov

change bureau

Apr 16th, 2021
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. bitcoin_count = int(input())
  2. chinese_yuan_count = float(input())
  3. commission = float(input())
  4. euro = 1.95
  5. dollar = 1.76
  6. bitcoin_price = 1168
  7. chinese_yuan_price = 0.15 * dollar
  8.  
  9. total = (bitcoin_price * bitcoin_count + chinese_yuan_price * chinese_yuan_count) / euro
  10.  
  11. after_commission = total - (commission/100 * total)
  12. print(f'{after_commission:.2f}')
  13.  
Advertisement
Add Comment
Please, Sign In to add comment