RosettaCodeData/Task/FizzBuzz/XPath-2.0/fizzbuzz-1.xpath

3 lines
119 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
for $n in 1 to 100 return
concat('fizz'[not($n mod 3)], 'buzz'[not($n mod 5)], $n[$n mod 15 = (1,2,4,7,8,11,13,14)])