VelizarAvramov

08. Employee Data

Nov 15th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.86 KB | None | 0 0
  1. using System;
  2. using System.Numerics;
  3.  
  4. namespace Demo
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             string firstName = Console.ReadLine();
  11.             string secondName = Console.ReadLine();
  12.             byte age = byte.Parse(Console.ReadLine());
  13.             char gender = char.Parse(Console.ReadLine());
  14.             long personalId = long.Parse(Console.ReadLine());
  15.             BigInteger employeeNumber = BigInteger.Parse(Console.ReadLine());
  16.  
  17.             Console.WriteLine($"First name: {firstName}");
  18.             Console.WriteLine($"Last name: {secondName}");
  19.             Console.WriteLine($"Age: {age}");
  20.             Console.WriteLine($"Gender: {gender}");
  21.             Console.WriteLine($"Personal ID: {personalId}");
  22.             Console.WriteLine($"Unique Employee number: {employeeNumber}");
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment