Tivadar Tivadar - 1 month ago 14
C# Question

c# - How to read char from the console and write them?

Sorry, I've just started programming C# , and i would like to know what's the easiest way to read a charachter or charachters s from the console and store them as a value, so that later I can write to the Console.

Thank you!

Answer

That would be:

string input = Console.ReadLine();