FizzBuzz: Difference between revisions

m
→‎{{header|Inform 6}}: Match style to the DM4
(Added a shorter BQN implementation using the Catch modifier)
m (→‎{{header|Inform 6}}: Match style to the DM4)
Line 4,770:
=={{header|Inform 6}}==
<syntaxhighlight lang="inform6">[ Main i;
for (i = 1: i <= 100: i++) {
if (i % 3 == 0)
{
if(i % 3 == 0) print "Fizz";
if (i % 5 == 0) print "Buzz";
if(i % 3 ~= 0 && i % 5 ~= 0) print i"Buzz";
if (i % 3 ~= 0 && i % 5 ~= 0)
print i;
 
print "^";
}
];</syntaxhighlight>
 
3

edits