Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = float (input())
- ins = input()
- ou = input()
- tem = x
- us = 1.79549
- eu = 1.95583
- gb = 2.53405
- if ins == 'usd':
- tem = x * us
- elif ins == 'gbp':
- tem = x * gb
- elif ins == 'eur':
- tem = x * eu
- if ou == 'usd':
- tem = tem / us
- elif ou == 'gbp':
- tem = tem / gb
- elif ou == 'eur':
- tem = tem / eu
- print ('{0:.2f}'.format(tem), ou)
Advertisement
Add Comment
Please, Sign In to add comment