From 7f7ab6195bba1258403ac474310e09384cc02c7f Mon Sep 17 00:00:00 2001 From: Shivam Chaudhary Date: Thu, 9 Feb 2023 10:50:19 +0100 Subject: [PATCH] Add feature to change currency to GBP --- src/currencyExchange.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/currencyExchange.c b/src/currencyExchange.c index b8cf582..ccf75d3 100644 --- a/src/currencyExchange.c +++ b/src/currencyExchange.c @@ -5,4 +5,11 @@ float toUSD(float euro) { float USD = euro * CURRENT_USD_RATE_OF_ONE_EURO; return USD; +} + +float toGBP(float euro) { + + float GBP = euro * CURRENT_GBP_RATE_OF_ONE_EURO; + + return GBP; } \ No newline at end of file