Programming Course in C# ¡Free!

Reading the user input

 Wednesday, May 24, 2017 published by Exercises C#
Course > Basic concepts > Reading the user input
Write a program in C# that asks the user for their favorite color. The program should always respond in the following line: Mine too!

Input

Red

Output

Mine too!
using System;
class Program
{
    public static void Main(string[] args)
    {
        Console.ReadLine();
        Console.WriteLine("Mine too!");
    }
}