VelizarAvramov

03. Employee Data

Nov 3rd, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _03._Employee_Data
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string name = Console.ReadLine();
  10.             int age = int.Parse(Console.ReadLine());
  11.             int employeeId = int.Parse(Console.ReadLine());
  12.             double salary = double.Parse(Console.ReadLine());
  13.  
  14.             Console.WriteLine($"Name: {name}");
  15.             Console.WriteLine($"Age: {age}");
  16.             Console.WriteLine($"Employee ID: {employeeId:d8}");
  17.             Console.WriteLine($"Salary: {salary:f2}");
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment