Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bitcoins_of_pesho = int(input())
- china_money_of_pesho = float(input())
- change_comission = float(input())
- one_bitcoin_to_leva = 1168
- one_china_money_to_usd = 0.15
- one_usd_to_bgn = 1.76
- one_euro_to_bgn = 1.95
- one_china_money_to_bgn = one_usd_to_bgn * one_china_money_to_usd
- sum_bitcoin_to_euro = (bitcoins_of_pesho * one_bitcoin_to_leva) / one_euro_to_bgn
- sum_china_money_to_bgn = china_money_of_pesho * one_china_money_to_bgn
- sum_china_money_to_euro = sum_china_money_to_bgn / one_euro_to_bgn
- sum_comission = (sum_bitcoin_to_euro+sum_china_money_to_euro) * change_comission / 100
- final_sum = (sum_bitcoin_to_euro + sum_china_money_to_euro) - sum_comission
- print("%.2f" % final_sum)
- #print(round(final_sum, 2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement