Search........

Google

Wednesday, March 5, 2008

Input

In this program we are discussing how to give an input . For getting the input we are using the command "Console.ReadLine()".The input we got will be in string format......


using System;
namespace inputdemo
{
class cls1
{
static void Main()
{
String str;
Console.WriteLine(" Enter Your Name");
str=Console.ReadLine();
Console.WriteLine("The Name Entered is "+str);

}
}
}




No comments: