How to add a number to its own index
<p>I will have a number which was taken as input from the use or i am storing a number assigned to a string as </p>

<pre><code>  string s"1234567";
</code></pre>

<p>As for this the index of each string will be as 0,1,2,3,4 and so on</p>

<p>I would like to add the number with that index as 1+0, 2+1 , 3+2 and so on like that</p>

<p>so that the output should be 1,3,5 like that</p>
