I will have a number which was taken as input from the use or i am storing a number assigned to a string as
string s"1234567";
As for this the index of each string will be as 0,1,2,3,4 and so on
I would like to add the number with that index as 1+0, 2+1 , 3+2 and so on like that
so that the output should be 1,3,5 like that
or in 2.0: