title: C# for loop in html MVC
body: <p>Hello I have the following for loop within html. I want to know how to output value i - 1. With the code below the output of the value ends up being:</p>
  
  <pre><code>0-1
  1-1
  2-1
  3-1
  4-1
  
  @for(int i = 0; i &lt; 5; i++){
      &lt;input type="text" name="name_@i-1" value="@i-1"&gt;
  }
  </code></pre>
  
  <p>The correct value of inputs should be the following:</p>
  
  <pre><code>-1
  0
  1
  2
  3
  </code></pre>
  
  <p>Any help is much appreciated!</p>