Friday, July 30, 2021

C Program for ATM Working principle

 #include <stdio.h>

int main()

{

int pinnumber,amount;

printf("Welcome to ATM\n");

printf("Please insert your card\n");

printf("Enter your pinnumber: ");

scanf("%d",&pinnumber);

if(pinnumber==2907)

{

    printf("Enter your amount : ");

    scanf("%d",&amount);

}

else

{

    printf("Incorrect pin\n");

    printf("Transaction Failed\n");

    printf("Take your card\n");

    printf("Thank you for visiting\n");

    return 0;

}

if(amount>2000)

{

    printf("Collect your amount\n");

    printf("Take your card\n");

    printf("Transaction completed\n");

    printf("Thank you for visiting\n");

}

else

{

    printf("Insufficient fund\n");

    printf("Take your card\n");

    printf("Transaction failed\n");

    printf("Thank you for visiting\n");

}

    return 0;

}


USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...