Skip to content

Banking management application #98

Description

@Kiranugale90
#include<stdio.h>
  
int main()
{
  int pin;
  int key;
  int amount;
   int balance=10000;
printf("         State Bank Of India 馃彟\n");
printf("________________________________________\n");
printf("________________________________________\n");
printf("******************ATM*******************\n");
printf("________________________________________\n");
printf("ENTER PIN NUMBER : ");  
scanf("%d",&pin);
printf("________________________________________\n");
    

printf("1) WITHDRAWAL\n");
printf("2) DEPOSIT\n");
printf("3) CHECK BALANCE\n");
printf("________________________________________\n");

printf("press any key::");
scanf("%d",&key);
printf("________________________________________\n");
printf("YOUR ACCOUNT\n ");
 switch (key)
{
   case 1:
 {
   printf("BALANCE IS Rs.10000\n");
    
   printf("ENTER WITHDRAWAL AMOUNT=");
   scanf("%d",& amount);
   amount>balance? printf("INVALID AMOUNT\n"): printf("your Balance is::%d\n ", balance-amount);
 printf("THANK YOU 馃檹");
    break;
}
  case 2:
{
   printf("ENTER DEPOSIT AMOUNT\n");
   scanf("%d",& amount);
    printf("YOUR BALANCE IS::%d", amount+balance);
   printf("THANK YOU 馃檹");
   break;
}
   case 3:
{
   printf("YOUR BALANCE IS ::%d", balance);
   printf("THANK YOU 馃檹");
   break;

}
default :
{
  printf("INVALID KEY");
   printf("THANK YOU 馃檹");
}








}
    
    
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions