Saturday, August 5, 2023

IOB ATM


 #include <stdio.h>

int main()

{

    printf(" IOB ATM \n");

    printf("insert your card\n");

    printf("enter your password:\n");

    int password,choice,balance,x,y,z;

    password=4321;

    scanf("%d",&z);

    balance=50000;

    if (password==z)

    {

      printf("1.balance\n");

      printf("2.withdraw\n");

      printf("3.deposit\n");

      printf("enter your choice:\n");

      scanf("%d",&choice);

    }

    else 

    {

      printf("wrong password");

      return(0);

    } 

    

    switch(choice) 

    {

        

      case 1:

      balance=50000;

      printf("your balance amount is:%d\n",balance); 

      break;

      case 2:

      printf("enter your withdraw amount:\n") ;

      scanf("%d",&x);

      

      printf("your balance amount is:%d\n",balance-x);

      printf("your transaction is completed successfully") ;

      break;

      case 3:

      printf("enter your deposit amount:");

      scanf("%d\n",&y);

      printf("your current balance is:%d\n",balance+y);

      printf("your amount is deposited successful");

      break;

      

     }

}



USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...