SHARE
TWEET

Employee Data

a guest Jul 10th, 2015 258 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace EmployeeData
  7. {
  8.     class EmployeeData
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             Console.Write("Enter your first name, please: ");
  13.             string firstName = Console.ReadLine();
  14.             Console.Write("Enter your last name, please: ");
  15.             string lastName = Console.ReadLine();
  16.             Console.Write("Enter your age,please: ");
  17.             byte age = byte.Parse(Console.ReadLine());
  18.             Console.Write("Enter your gender (m/f), please: ");
  19.             char gender = char.Parse(Console.ReadLine());
  20.             Console.Write("Enter your personal ID, please: ");
  21.             long personalID = long.Parse(Console.ReadLine());
  22.             Console.Write("Enter your Unique Employee Number, please: ");
  23.             int uniqueEmployeeNumber = int.Parse(Console.ReadLine());
  24.  
  25.             Console.WriteLine("First name: {0}\nLast name: {1}\nAge: {3}\nGender: {4}\nPersonal ID: {5}\nUniqueEmployeeNumber: {6}",
  26.                 firstName,lastName,age,gender,personalID,uniqueEmployeeNumber);
  27.         }
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top