BubaLazi

03. Employee Data

May 27th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 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 _01.BasicSyntaxDemo
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var name = Console.ReadLine();
  14.             var age = int.Parse(Console.ReadLine());
  15.             var employeeID = int.Parse(Console.ReadLine());
  16.             var monthlySalary = double.Parse(Console.ReadLine());
  17.             Console.WriteLine("Name: " + name);
  18.             Console.WriteLine("Age: " + age);
  19.             Console.WriteLine("Emoloyee ID: {0:D8}", employeeID);
  20.             Console.WriteLine("Salary: {0:F2}", monthlySalary);
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment