Currency exchange
Convert the given currency (1st parameter) to US currency with the given exhange rate (2nd parameter). Return the value in two decimal places.
Sample Code:
function currExchange(cur,rate) {
// Enter your logic here...
}
Examples:
Input: 2,0.79
Output: '1.58 USD'
Explanation: 2 CAD is equivalent to 1.58 USD, with an exchange rate of 0.79.
Input: 5,0.73
Output: '3.65 USD'
Explanation: 5 SGD is equivalent to 3.65 USD, with an exchange rate of 0.73.