public static void Main ()
int pin=4040, bal=10000, b, f, d, total, total1, total2, kk , mm, np;
Console.WriteLine("Welcome to BDO ATM Banking");
Console.Write("Enter the pin: ");
pin=int.Parse(Console.ReadLine());
Console.WriteLine(" [1] Balance Inquiry \n [2] Withdraw \n [3] Deposit \n [4] Change Pin \n [5] Paybills \n [x] Cancel");
Console.Write("Please select a transaction: ");
Console.WriteLine("The current balance in your account is {0}",bal);
Console.WriteLine("Proceed with another transaction? [y] Yes or [n] No: ");
trans=Console.ReadLine();
if(trans == "y" || trans == "Y")
else if(trans == "n" || trans == "N")
Console.WriteLine(" Thank you for banking with us. Goodbye!");
Console.Write("Enter amount to withdraw: ");
f=int.Parse(Console.ReadLine());
Console.WriteLine("Please collect the cash {0}", f);
Console.WriteLine("The current balance is now {0}",total);
Console.WriteLine("Proceed with another transaction? [y] Yes or [n] No: ");
trans=Console.ReadLine();
if (trans == "y" || trans == "Y")
else if (trans == "n" || trans == "N")
Console.WriteLine(" Thank you for banking with us. Goodbye!");
Console.Write("Enter the amount to be deposit: ");
d=int.Parse(Console.ReadLine());
Console.WriteLine("The current balance is now {0}",total1);
Console.WriteLine("Proceed with another transaction? [y] Yes or [n] No: ");
trans=Console.ReadLine();
if(trans == "y" || trans == "Y")
else if(trans == "n" || trans == "N")
Console.WriteLine(" Thank you for banking with us. Goodbye!");
Console.WriteLine("Want to change your pin? ");
Console.Write("Enter your previous pin: ");
kk=int.Parse(Console.ReadLine());
for ( int s=0; s<=1; s++)
Console.Write("Enter your new pin: ");
np=int.Parse(Console.ReadLine());
Console.Write("Re-type your new pin: ");
mm=int.Parse(Console.ReadLine());
Console.WriteLine("Your pin is changed.");
Console.WriteLine("Proceed with another transaction? [y] Yes or [n] No: ");
trans=Console.ReadLine();
if (trans == "y" || trans == "Y")
else if (trans == "n" || trans == "N")
Console.WriteLine(" Thank you for banking with us. Goodbye!");
Console.WriteLine("Try again.");
Console.Write("Enter the biller name (Globe, Cepalco, Parasat, Credit Card): ");
names=Console.ReadLine();
Console.Write("Enter the bill amount: ");
b=int.Parse(Console.ReadLine());
Console.WriteLine("Your current balance is now {0}",total2);
Console.WriteLine("Proceed with another transaction? [y] Yes or [n] No: ");
trans=Console.ReadLine();
if(trans == "y" || trans == "Y")
else if(trans == "n" || trans == "N")
Console.WriteLine(" Thank you for banking with us. Goodbye!");
Console.WriteLine("Thank you for banking with us. Goodbye!");
Console.Write("Sorry you input mismatched pin ");
Console.WriteLine("Try Again !");