Answers for "how to get string input from user in c# console application"

C#
10

c# input

Console.Write("words");
input = Console.ReadLine();
Posted by: Guest on April-10-2020
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 get string input from user in c# console application"

C# Answers by Framework

Browse Popular Code Answers by Language