SHARE
TWEET

08. Employee Data 1

a guest May 23rd, 2016 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. class EmployeeData
  4. {
  5.     public static void Main(string[] args)
  6.     {
  7.         //Console.Write("First name: ");
  8.         string firstName = Console.ReadLine();
  9.  
  10.         //Console.Write("Last name: ");
  11.         string lastName = Console.ReadLine();
  12.  
  13.         //Console.Write("Age: ");
  14.         byte age = byte.Parse(Console.ReadLine());
  15.  
  16.         //Console.Write("Gender (m or f): ");
  17.         char gender = char.Parse(Console.ReadLine());
  18.  
  19.         //Console.Write("Personal ID number: ");
  20.         string personalID = Console.ReadLine();
  21.  
  22.         //Console.Write("Unique Employee number (2756****): ");
  23.         int uniqueNumber = int.Parse(Console.ReadLine());
  24.  
  25.         Console.WriteLine("First name: {0}", firstName);
  26.         Console.WriteLine("Last name: {0}", lastName);
  27.         Console.WriteLine("Age: {0}", age);
  28.         Console.WriteLine("Gender: f", gender);
  29.         Console.WriteLine("Personal ID: {0}", personalID);
  30.         Console.WriteLine("Unique Employee number: {0}", uniqueNumber);
  31.     }
  32. }
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