var results = (from item in Enumerable.Range(1, 100)
where (item % 3).Equals(0) || (item % 5).Equals(0)
select item).Select((i => (i % 3).Equals(0) ? ((i % 5).Equals(0) ? "Fizz Bang" : "Fizz") : "Bang"));
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment