Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity3d random 
Csharp :: how refresh just one table in laravel by terminal 
Csharp :: How to add a label programatically in c# 
Csharp :: c# search on google 
Csharp :: monodevelop ubuntu 20.04 
Csharp :: how to check if string can be converted to int c# 
Csharp :: loop over all values in enum 
Csharp :: c# implicit operator 
Csharp :: c# regex to find number between parenthesis 
Csharp :: text split 
Csharp :: get distinct from datatable c# 
Csharp :: linq where list contains another list 
Csharp :: c# swap variables 
Csharp :: Xamarin.Forms - How to navigate to a tabbed page child page 
Csharp :: bootstrap distane between col 
Csharp :: perlin noise unity 
Csharp :: c# OnMouseUp unity 
Csharp :: merge point 
Csharp :: c# console background color 
Csharp :: singleton unity 
Csharp :: how to print a matrix in c# 
Csharp :: c# how to refresh your binding source 
Csharp :: how to loop an animation in unity 
Csharp :: how to get the date of the first day and last day of the week c# 
Csharp :: how to make multiplayer game in unity 
Csharp :: c# foreach char in string 
Csharp :: how to change the axis of a Vector3 variable 
Csharp :: smtp check if email sent 
Csharp :: c# making a folder wpf 
Csharp :: unity time deltatime 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =