Browse Source

Add more cases to convert currency to YEN and YUAN

remotes/origin/feature/currency-exchange
Shivam Chaudhary 2 years ago
parent
commit
6369691a54
  1. 7
      src/currencyExchange.c

7
src/currencyExchange.c

@ -7,6 +7,13 @@ float convert(float euro, int newCurrencyCode) {
case CURRENCY_CODE_GBP: case CURRENCY_CODE_GBP:
return ( euro * GBP_RATE_OF_ONE_EURO ); return ( euro * GBP_RATE_OF_ONE_EURO );
case CURRENCY_CODE_JAPANESE_YEN:
return ( euro * JAPANESE_YEN_RATE_OF_ONE_EURO );
case CURRENCY_CODE_CHINESE_YUAN:
return ( euro * CHINESE_YUAN_RATE_OF_ONE_EURO );
} }
return -1; return -1;
Loading…
Cancel
Save