I have 2 lists:
List<int> listOne
say [1,2,3,4]List<int> listTwo
say [111,222,333,444]
Now I want to make a resultant List<int>
using the above 2 lists, making some calculation like [1*100/111, 2*100/222 ,...
listOne[i]*100/listTwo[i].,...]
What I have tried:
resultantList = listOne.Select((s, i) => new { s * 100 / listTwo[i] }).ToList();
resultantList = listOne.Select((s, i) => s * 100 / listTwo[i]).ToList();
But this doesn't compile. How should I frame the LINQ for this?