← All examples

Read a value

C# Input/Output

Console.ReadLine / WriteLine

Flowchart (ISO 5807)

StartInput sOutput sEndFigure 1 — P.Echo

Source code

class P {
    static void Echo() {
        string s = Console.ReadLine();
        Console.WriteLine(s);
    }
}