Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ATM
//gcc 5.4.0 #include <stdio.h> int main(void) { int deposite,accountnumber, pin,choice,a,balance =10000; printf("Enter your account number:\n"); scanf("%d",&accountnumber); printf("Please Enter your pin\n"); scanf("%d",&pin); printf("\n===========================\n"); printf("your account no is %d\n",accountnumber); printf("1. balance\n"); printf("2. withdrawal\n"); printf("3. deposit\n"); printf("4. Exit"); scanf("%d",&choice); switch(choice){ case 1: printf("your current balance is %d",balance); break; case 2: printf("Please Enter the amount to withdrawal:"); scanf("%d",&a); balance = balance-a; break; case 3: printf("Enter Amount to deposit:"); scanf("%d",&deposit); balance = balance+deposit; break; case 4: printf("thank you for comming\n"); break; } return 0; }
run
|
edit
|
history
|
help
0
Stub Program for Problem 3 HW 2
a3
Atleti
Project 3 Part 1 v1.1
purple ghost red orange blue skulls
Bitwise Operations
string_ptr_to_fct_param
switch_nota
Prime no
b=1,c=1