Friday, July 30, 2021

C Program for ATM Working Principle Type2

 #include <stdio.h>

int main()

{

int pinnumber=1357,trasaction,amount;

printf(" welcome statebank atm\n");

printf("please insert your atmcard\n");

printf("enter your pinnumber\n");

scanf("%d",&pinnumber);

if(pinnumber==1357)

{

    printf("select your trasaction\n");

    scanf("%d",&trasaction);

}

else

{

    printf("wrong pinnumber\n");

    printf("collect your atmcard\n");

    printf("thank you for your visit\n");

    return 0;

}

if(trasaction>10)

{

    printf("withdraw amount\n");

    printf("enter  your amount\n");

    scanf("%d",&amount);

}

else

{

    printf("balance enquiry\n");

    printf("available balance\n");

    printf("thank you for your visit\n");

return 0;

}

if(amount<5000)

{

    printf("collect your amout\n");

    printf("collect your bill\n");

}

else

{

    printf("insufficent amount\n");

}

printf("thank you for your visit\n");

return 0;

}

USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...