Basic I/O
Basic console input and output using Console methods.
Console.Write("Enter your name: ");string name = Console.ReadLine();Console.WriteLine($"Hello, {name}!");Run the Application
Section titled “Run the Application”dotnet runResult (example input “Alice”)
Section titled “Result (example input “Alice”)”Enter your name: AliceHello, Alice!