A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
14
Task/FizzBuzz/Inform-7/fizzbuzz.inf
Normal file
14
Task/FizzBuzz/Inform-7/fizzbuzz.inf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Home is a room.
|
||||
|
||||
When play begins:
|
||||
repeat with N running from 1 to 100:
|
||||
let printed be false;
|
||||
if the remainder after dividing N by 3 is 0:
|
||||
say "Fizz";
|
||||
now printed is true;
|
||||
if the remainder after dividing N by 5 is 0:
|
||||
say "Buzz";
|
||||
now printed is true;
|
||||
if printed is false, say N;
|
||||
say ".";
|
||||
end the story.
|
||||
Loading…
Add table
Add a link
Reference in a new issue