Introduction
This article explains how to get an input from the console. If you have used C++ then cin and cout are the functions for read and write to the console.
Type this code in a text editor and save file as read.cs.
using System;
class ReadStr
{
public static void Main()
{
Console.Write("Enter your name: ");
string szName = Console.ReadLine();
Console.WriteLine("Hey " + szName);
}
}
Now compile it from command line with syntax cs read.cs. It will create an exe, read.exe in same dir where your read.cs file is. Run the exe.
Note. I like to use my VC++ editor to create a text file and save it as .cs extension.

roua ammerPosted Apr 1, 2012, 4:38 AM
hi mahesh now i realy confused from all article i read i want from you help me please.from beginning i must draw a classes for projects that draw in EA tool( i did not know how) for many type.this classes have a value of risk for many items ,i need take this value (by the way this value in float number) could help me? please