Posted By

calebt on 10/23/09


Tagged


Versions (?)

Project Euler Problem 1


 / Published in: C#
 

  1. int sum = Enumerable.Range(1, 999)
  2. .Where(i => i % 3 == 0 || i % 5 == 0)
  3. .Sum();

Report this snippet  

You need to login to post a comment.