diff --git a/src/currencyExchange.c b/src/currencyExchange.c index 2a22334..83bf372 100644 --- a/src/currencyExchange.c +++ b/src/currencyExchange.c @@ -7,6 +7,13 @@ float convert(float euro, int newCurrencyCode) { case CURRENCY_CODE_GBP: 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;