Breaking

All C program


The solution is here 👇👇



#include<stdio.h>
#include<stdlib.h>
void pin();
void balance();
void withdrow();
void transfer();
void deposite();
int ch;
char name[20];
int pincode,with,che,tra,depo,bal=10000;
int a;
void main()
{
system("clear");
pin();
}
void pin()
{
b:
printf("enter your pin= ");
scanf("%d",&pincode);
system("clear ");
if(pincode==100)
{                            
printf("\n                                                          >>>>> HELLO SIR WELL COME  TO OUR OFFICIAL BANK<<<<<\n\n\n");
printf("\n                                                                                                                     ifs any problem  than tap 5");

printf("\nenter your choice \n");

x:
if(a==1)
system("clear");
printf("\n\n1.. Check your balance");
printf("\n\n2.. Withdrow your balance");
printf("\n\n3.. Transfer your balance");
printf("\n\n4.. Deposite your balance");
printf("\n\nopction is :->");
scanf("%d",&ch);

switch(ch)
{

case 1:
{
system("clear");
balance();
printf(" \n \n do you want to again than tap 1= ");
scanf("%d",&a);
if(a==1)
{
goto x;
}
printf("\n\n");
}break;
case 2:
{
system("clear");
withdrow();
printf(" \n \n do you want to again than tap 1= ");
scanf("%d",&a);
if(a==1)
{
goto x;
}
printf("\n\n");
}break;
case 3:
{
system("clear");
transfer();
printf(" \n \n do you want to again than tap 1= ");
scanf("%d",&a);
if(a==1)
{
goto x;
}
printf("\n\n");
}
case 4:
{
system("clear");
deposite();
printf(" \n \n do you want to again than tap 1= ");
scanf("%d",&a);
if(a==1)
{
goto x;
}
printf("\n\n");
}
case 5:
{
printf("\n\n THANK YOU TO USE OUR SERVECE\n\n\n");
}
}



}
else
{
printf("\nplease enter vaild pincide\n");
goto b;
}
}//    main pin void
void balance()
{
system("clear");
printf("\n \n sir, your balance is %d\n\n",bal);
}
void withdrow()
{
system("clear");
printf("enter a amount to withdrow :->");
scanf("%d",&with);
printf("\n withdrow is sucsess full");
printf("\n\n sir, your curent balance is :-> %d",bal=bal-with);
}
void transfer()
{
system("clear");

printf("\n\nenter a user name :->");
scanf("%s",name);
printf("enter a amount to transfer :->");
scanf(" %d",&tra);
printf("\n the amaount is sucsessfull to transfer Name= (%s) ",name);
printf("\n        Amount= (%d) ",tra);
printf("\n\n sir, your current balance is :-> %d",bal=bal-tra);
}
void deposite()
{
system("clear");
printf("\n enter a amount to deposite :->");
scanf("%d",&depo);
printf("\nsir, deposite is sucsessful the amount is :-> %d",depo);
printf("\n\n sir, your curent balance is :->%d",bal=bal+depo);
}