Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ATM
//gcc 5.4.0 #include <stdio.h> int main(void) { int balance = 5000,deposite,withdraw; int choice,pin,a,accountnumber; printf("Please Enter your accountnumber:\n"); scanf("%d",&accountnumber); printf("Please Enter your pin number:\n"); scanf("%d",&pin); printf("*********WELCOME TO SBI ATM SERVICES*********\n"); printf("1. check balance\n"); printf("2. withdraw\n"); printf("3. Deposite\n"); printf("4. Exite\n"); do{ printf("\nEnter your choice:\n"); scanf("%d",&choice); switch(choice) { case 1: printf("\n your balance in RS : %d",balance); break; case 2: printf("\n Enter the amount to withdraw :"); scanf("%d",&withdraw); balance = balance - withdraw; printf("\nYour currant balance is %d",balance); break; case 3: printf("\nPlease Enter Amount to deposite:"); scanf("%d",&deposite); balance = balance + deposite; printf("\nYour currant balance is %d",balance); break; case 4: printf("THANKS FOR COMMING"); exit(0); } }while(choice<=4 && choice>0); }
run
|
edit
|
history
|
help
0
a>=0 && b>=a
print_odd_pointer.c
A_141117_Primo02
bit wise operation
assignment 3 celina
Finding the second largets value v0.8
pseudo hw v.05
b=1 c=1
14th Feb Programming Project v.01
Leap year check