From 336d01499aced1c24816f28a48896e58c3f94b87 Mon Sep 17 00:00:00 2001 From: Shivam Chaudhary Date: Tue, 7 Feb 2023 16:12:25 +0100 Subject: [PATCH] Add feature to change currency to USD --- src/currencyExchange.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/currencyExchange.c diff --git a/src/currencyExchange.c b/src/currencyExchange.c new file mode 100644 index 0000000..b8cf582 --- /dev/null +++ b/src/currencyExchange.c @@ -0,0 +1,8 @@ +#include "currencyExchange.h" + +float toUSD(float euro) { + + float USD = euro * CURRENT_USD_RATE_OF_ONE_EURO; + + return USD; +} \ No newline at end of file