Advertisement
veronikaaa86

Employee Data C#

Jan 22nd, 2018
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Lab03EmployeeData
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string name = Console.ReadLine();
  14.             int age = int.Parse(Console.ReadLine());
  15.             int ID = int.Parse(Console.ReadLine());
  16.             double salary = double.Parse(Console.ReadLine());
  17.  
  18.             Console.WriteLine($"Name: {name}");
  19.             Console.WriteLine($"Age: {age}");
  20.             Console.WriteLine("Employee ID: {0:D8}", ID);
  21.             Console.WriteLine("Salary: {0:F2}", salary);
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement