Answers for "c# write text before user input"

C#
1

c# write text before user input

Console.Write("Enter username: ");
string userName = Console.ReadLine();
Console.WriteLine("Username is: " + userName);
// OUTPUT:
// Enter username: example username
// Username is: example username
Posted by: Guest on August-17-2021

C# Answers by Framework

Browse Popular Code Answers by Language