how to take user input in string in csharp

Code Example - how to take user input in string in csharp

                
                        //for user input in C#, you need to first declare the variable 
//suppose we are going to take a input from the user 
string username = Console.Readline() ;
Console.Writeline= (" your name is " + username);

//input 
Sadmansaqib
// Output 
your name is Sadmansaqib