Reading the coding horror, I just came across the FizzBuzz another time.
The original post is here: Coding Horror: Why Can\'t Programmers.. Program?
For thos
Did anyone do this one already?
Enumerable.Range(1, 100).Select(x => (x % 15 == 0) ? "FIZZBUZZ" : (x % 5 == 0) ? "BUZZ" : (x % 3 == 0) ? "FIZZ" : x.ToString() ) .ToList() .ForEach(console.WriteLine);