From 7eb3db21f9baa670bf1e5256da58091b62253e99 Mon Sep 17 00:00:00 2001 From: Roma Dey <56331079+ROM3107@users.noreply.github.com> Date: Sat, 2 Oct 2021 21:38:12 +0530 Subject: [PATCH] Add files via upload --- BANKING.C | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 BANKING.C diff --git a/BANKING.C b/BANKING.C new file mode 100644 index 00000000..1a35973b --- /dev/null +++ b/BANKING.C @@ -0,0 +1,155 @@ +#include +struct customer +{ +char cus_name[100]; +int acc_no; +int amount; +}list[100]; +void accept(struct customer[],int); +void display(struct customer[],int); +void display_all(struct customer[],int); +void withdraw(struct customer[],int,int); +void deposit(struct customer[],int,int); +void accept(struct customer list[100],int n) +{ +int i; +for(i=0;iaw) +d=1; +} +} +if(k!=-1) +{ +if(d==0) +{ +printf("\n YOUR ACCOUNT DOES NOT HAVE THE SUFFICIENT BALANCE...."); +display(data,k); +} +else +withdraw(data,k,aw); +} +else +printf("\n WRONG ACCOUNT NUMBER!!NO ACCOUNT FOUND ...TRY AGAIN OR PRESS 0 TO EXIT"); +break; +case 4: +k=-1; +printf("\n WELCOME TO AMOUNT DEPOSIT MENU....."); +printf("\n ENTER ACCOUNT NO.:"); +scanf("%d",&acd); +printf("\n ENTER AMOUNT TO BE DEPOSITED:"); +scanf("%d",&ad); +for(i=0;i