How to assign a variable in one method and change/use it in another method? : <p>What changes do I have to make for the x and z variables to retain the values they are assigned in the Assign method? I have only recently started learning C# for college after learning C++ for 2 years in school so this is very confusing to me.</p>

<pre><code>class Program
{
    static void Assign(int x, int z)
    {
        x = 3;
        z = 2;
    }

    static void Sum(int x, int z)
    {
        Console.WriteLine(x + z);
    }

    static void Main(string[] args)
    {   
        int x = 0, z = 0;
        Assign(x,z);
        Sum(x,z);
    }
}
</code></pre>
