From 8f4d1b21fe095cf225b82c19c7c84f8c295095dc Mon Sep 17 00:00:00 2001 From: fdlt3817 Date: Thu, 9 Feb 2023 22:43:49 +0100 Subject: [PATCH] Add functionality to be able to send money to other banks customers --- src/sendmoney.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sendmoney.c b/src/sendmoney.c index d5447a3..fd4a7fe 100644 --- a/src/sendmoney.c +++ b/src/sendmoney.c @@ -20,6 +20,11 @@ bool sendMoney(int customerID){ return true; } } + }else{ + if(withdrawSpecificAmount(customerID, amountToSend)){ + printf("\nYou have successfuly transfered %.2f€ to [%d]",amountToSend,recID); + return true; + } } } }else{