Sie sind auf Seite 1von 2

#include<stdio.

h>
#include<time.h>
#include<iostream>
int option;
int amount;
int password;
int tmpPass;
int main()

{
tmpPass=1234;

scanf("%d",&password);

if(password!=tmpPass)
{
printf("INCORRECT PASSWORD\n");

}else
{

return 0;
system("cls");
}

printf(" 1.WITHDRAW \n");


printf(" 2. DEPOSIT \n");
printf(" 3.CHECK BALANCE \n");
scanf("%d",&option);
switch(option)
{

case 1:
printf("how much do u want to
withdraw");
scanf("%d",&amount);
if ( amount<=1000)

printf("do u want to continue");

} else
printf("enter amount");
scanf("%d",&amount);
break;
case 2:
printf("how much do u wnt to
deposit");

break;
case 3:
printf("you have 10 000 in
your account");
default:
printf("go back to menu ");

return 0;

}
}

Das könnte Ihnen auch gefallen