How To Get The Sum Of Last 3 Items In A List Using Lambda Expressions?

user image

Muskan Anand

2 years ago

Use int sum = list.Reverse().Take(3).Sum();

Recent Doubts

Close [x]