thegrudge

BankAccountData

Nov 13th, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1. using System;
  2. class BankAccountData
  3. {
  4.     static void Main()
  5.     {
  6.         string firstName = "Dimitar";
  7.         string middleName = "Stoyanov";
  8.         string lastName = "Marinov";
  9.         decimal balance = 12043392;
  10.         string bankName = "My Bank";
  11.         string ibanNum = "BG80 BNBG 9999 1020 3456 78";
  12.         ulong firstCreditCardNum = 5100325465899000;
  13.         ulong secondCreditCardNum = 4957349054007000;
  14.         ulong thirdCreditCard = 2389570043789068;
  15.  
  16.         //prints data of the account holder
  17.         Console.WriteLine("Account holder: {0} {1} {2}", firstName, middleName, lastName);
  18.         Console.WriteLine("Balance: {0:C2}", balance); //C2 formats the values as currency.
  19.         Console.WriteLine("Bank name: {0}", bankName);
  20.         Console.WriteLine("IBAN: {0}", ibanNum);
  21.         //":#### #### #### ####" separates the card number in the 4 groups of 4 digits.
  22.         Console.WriteLine("Customers credit cards: \n{0:#### #### #### ####}\n{1:#### #### #### ####}\n{2:#### #### #### ####}", firstCreditCardNum, secondCreditCardNum, thirdCreditCard);
  23.  
  24.     }
  25. }
Add Comment
Please, Sign In to add comment