Guest User

Untitled

a guest
Mar 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import std.stdio;
  2. import std.range;
  3. import std.conv;
  4. import std.algorithm;
  5.  
  6. void main()
  7. {
  8. iota(1, 100).map!(x => x % 15 == 0 ? "FizzBuzz": x % 3 == 0 ? "Fizz": x % 5 == 0 ? "Buzz": x.to!string).each!writeln;
  9. }
Add Comment
Please, Sign In to add comment