Whats the point of methods and functions in C#? : <p>Sorry if this is a dumb question but I don't really grasp the point of methods/functions in C#. I need some clarification/reasoning. Look at the code for reference</p>

<hr>

<h2>why do i have to make a method:</h2>

<pre><code>string color;

if (color == "red")
{
    Text();
}

void Text();
{
    Console.WriteLine("you chose " + color)
}
</code></pre>

<hr>

<h2>when you can make it without using a method:</h2>

<pre><code>if (color == "red")
{
    Console.WriteLine("you chose red")
}
</code></pre>
