Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
funcion quicksort
Project 5 v0.11
macaddress
sume of diagonal v.1
date diff sample
A_141124Burbuja
test
Calculating longs p v1
Bitwise Xor Swaping Two Variables
sample.c
Please log in to post a comment.