Project Euler Problem 1


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. int sum = Enumerable.Range(1, 999)
  2. .Where(i => i % 3 == 0 || i % 5 == 0)
  3. .Sum();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.