Input/Output

Read from STDIN, Write to STDOUT

using System;

public class Program {
    public static void Main() {
        int N = int.Parse(Console.ReadLine()); //Reading input from STDIN
        Console.WriteLine(N * 2); // Writing output to STDOUT
        string S = Console.ReadLine();
        Console.WriteLine(S);
    }
}

Last updated

Was this helpful?