Advertisement
Guest User

EmployeeData

a guest
Jan 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using System;
  2. using System.Globalization;
  3.  
  4. namespace EmployeeData
  5. {
  6. class Program
  7. {
  8. static void Main(string[] args)
  9. {
  10. var employeeName = Console.ReadLine();
  11. var employeeAge = Console.ReadLine();
  12. int employeeID = int.Parse(Console.ReadLine());
  13. Double empleyeeSalary = Double.Parse(Console.ReadLine());
  14. Console.WriteLine("Name: {0}", employeeName);
  15. Console.WriteLine("Age: {0}", employeeAge);
  16. Console.WriteLine("Employee ID: {0}", employeeID.ToString("D8"));
  17. Console.WriteLine("Salary: {0}", empleyeeSalary.ToString("F2", CultureInfo.InvariantCulture));
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement