How to I write an equation to raise a variable to another variable using a for loop? - C#