Input from the console using ReadLine(). : Console Read : Development C# Examples


C# Examples » Development » Console Read »

 

Input from the console using ReadLine().









    
using  System;    
    
class  MainClass  {  
    public  static  void  Main()  {  
        string  str;  
  
        Console.WriteLine("Enter  some  characters.");  
        str  =  Console.ReadLine();  
        Console.WriteLine("You  entered:  "  +  str);  
    }  
}
    
   
  
   



Output

Enter some characters.
qwer
You entered: qwer


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Console Read