Asks the user for an input, stores and prints it to the console c# My code is very simple, it asks for an input then stores the input. I am new to c# and wanted to know if it was possible to both ask and accept the input on one line.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication
{
    class Program
    {
        static void Main()
        {
            var input = GetInput();
            Console.WriteLine("Your input:\n{0}", input);

        }
        static string GetInput() 
        {
            Console.WriteLine("Please input somthing");
            var input = Console.ReadLine();
            return input;    

        }
    }
}


All feedback welcome!
You sure can, you can use something even smaller such as:

using System;

namespace ConsoleApplication
{
    class Program
    {
        static void Main()
        {
            Console.WriteLine("Please input something");
            Console.WriteLine("Your input: \n{0}", Console.ReadLine());
            Console.ReadLine(); //stops the console from closing
        }
    }
}