Skip to content

Read a value

C# Console.ReadLine / WriteLine

Flowchart (ISO 5807)

StartInput sOutput sEndFigure 1 — P.Echo

Source code

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

The editor opens with this code — change it and the chart redraws.

Language
C#
Constructs
Console.ReadLine / WriteLine
Topic
Input/Output
Formats
Word, Visio, draw.io, PDF, SVG

Related examples