Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using System;
  2.  
  3. class Homework3
  4. {
  5. static void Main(string[] args)
  6. {
  7. string name = Console.ReadLine();
  8. int age = int.Parse(Console.ReadLine());
  9. int id = int.Parse(Console.ReadLine());
  10. double salary = double.Parse(Console.ReadLine());
  11.  
  12. Console.WriteLine($"Name: {name}");
  13. Console.WriteLine($"Age: {age}");
  14. Console.WriteLine($"Employee ID: {id:d8}");
  15. Console.WriteLine($"Salary: {salary:f2}");
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement