📌  相关文章
📜  如何在 c# 代码示例中以字符串形式获取用户输入

📅  最后修改于: 2022-03-11 14:49:22.907000             🧑  作者: Mango

代码示例1
//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