Struggling with reassigning a variable using a method in C# ><
I'm struggling to figure out how to reassign "salaryBudget" as the increased value outside of the method, as this code returns the original input value for each outputs. As I understand it, the method call should be processed before the second output, but it seems to be doing nothing. Appreciate any guidance on this one! using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace soloLearn { class Program { static void Main(string[] args) { int salaryBudget = Convert.ToInt32(Console.ReadLine()); int percent = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Before the increase: " + salaryBudget); //complete the method call Increase(ref salaryBudget, ref percent); // Console.WriteLine(salaryBudget); Console.WriteLine("After the increase: " + salaryBudget); } //complete the method static void Increase(ref int salaryBudget, ref int percent) { int perc = (percent / 100) + 1; salaryBudget = salaryBudget * perc; } } }