ATM management in c language
Hey there!
today I am with a new instresting topic I am sharing with you a full ATM management coding with programming in c.
I think it will be helpful for you it simple and 50 lines of code.
Try this in your c compiler 👇
👉Use password 2002👈
#include<stdio.h>
#include<conio.h>
void main ()
{
int a,b,c,p;
int w=5000;
int r=2002;
printf("enter your password\n");
scanf("%d",&p);
if(p==r){
printf("login successfully\n");
}
else{
printf("sorry you can't login\n");
return 0;
}
printf("Welcome to the Nilesh wadhave's ATM service\n");
printf("chose any service\n");
printf("[1] balance inquiry\n");
printf("[2] withdraw money\n");
printf("[3] deposit money\n");
printf("[4] exit\n");
scanf("%d",&c);
switch (c)
{
case 1:
printf("your amount is %d\n",w);
printf("thank you for choosing our ATM have a good day!");
break;
case 2:
printf("enter amount to withdraw\n");
scanf("%d",&a);
b=w-a;
printf("withdraw successfully\n");
printf("remaining amount is %d\n thank you for choosing our ATM have a good day!",b);
break;
case 3:
printf("enter amount to deposit\n");
scanf("%d",&a);
b=w+a;
printf("amount deposit successfully\n");
printf("your amount is %d\n",b);
break;
case 4:
printf("thank you for using our bank service have a good day!");
break;
default:
printf("you choose wrong key ");
}
}
Thank you for your support 🙏
Share by : Nilesh wadhave 👍
Post a Comment