Answers for "how to take user input in string in c#"

C#
1

how to take user input in string in c#

//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
Posted by: Guest on June-09-2021

Code answers related to "how to take user input in string in c#"

C# Answers by Framework

Browse Popular Code Answers by Language