Question
Paramenters:
['USD', 'GBP', 0.77] which means 1 USD is equal to 0.77 GBPGiven the above parameters, find the conversion rate that maps to the 'from' currency to the 'to' currency.
Your return value should be a number.
Example:
You are given the following parameters:
['USD', 'JPY', 110] ['US', 'AUD', 1.45] ['JPY', 'GBP', 0.0070]['GBP', 'AUD']Find the rate for the 'To/From' curency. In this case, the correct result is 1.89.
Related problems: