Reading From Console Program - C# Program

using System;
namespace ReadDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            string name;
            int salary;
            Console.Write("Enter the Employee Name :");
            name = Console.ReadLine();
            Console.Write("Enter the Salary :");
            salary = Convert.ToInt32(Console.ReadLine()); 
            Console.WriteLine("Employee Name :{0} and Salary :{1}", name,salary );
        }
    }
}

The output from this program is shown here:

Enter the Employee Name: rahul joshi
Enter the Salary : 40000

Employee Name : Rakesh Jain and Salary :40000

KeenTpoint Video Tutorial - Reading from Console Program in C#