/ Published in: C#
Expand |
Embed | Plain Text
int sum = Enumerable.Range(1, 999) .Where(i => i % 3 == 0 || i % 5 == 0) .Sum();
You need to login to post a comment.
int sum = Enumerable.Range(1, 999) .Where(i => i % 3 == 0 || i % 5 == 0) .Sum();
You need to login to post a comment.