Monday, August 27, 2007

console based input in C#

console based input in C#
====================


string userName;

Console.WriteLine ("Please Enter your name : ");
userName= Console.ReadLine();
Console.WriteLine ("Welcome {0} ",userName);



Please find that Console.ReadLine() is something like scanf in C language

No comments: