Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using ConsoleApplication1.Classes;
- namespace ConsoleApplication1 {
- public class Hello {
- static void Main() {
- BankAccount account = new BankAccount();
- Console.WriteLine("Welcome to the bank of K-Shadow.");
- Console.WriteLine("What is your name?");
- account.Name = Console.ReadLine();
- Console.WriteLine("What is the desired password you want for your account?");
- account.Pass = Console.ReadLine();
- Console.WriteLine("In K-Shadow's bank, you start with 10 dollars, make your choices wisely.");
- account.Money = 10;
- Console.WriteLine("Account details:\nUsername: " + account.Name + "\nPassword: " + account.Pass + "\nBalance: " + account.Money + "");
- Console.WriteLine("Would you like to deposit money? [1] = Y, [0] = N");
- string input = Console.ReadLine();
- if (input != "0")
- {
- Console.WriteLine("How much money to deposit?");
- }
- else
- {
- Console.WriteLine("Get out then!");
- }
- Console.ReadKey();
- }
- }
- }
Add Comment
Please, Sign In to add comment