Portable standard facades for byte text, environment, timers, randomness, mapped files, streams, worker pools, directory trees and threads; full ASCII lowercase in std/unicode; examples move to examples/ with generated site pages; Go output handles mixed-width slice bounds.
15 lines
372 B
Ziran
15 lines
372 B
Ziran
// FizzBuzz: multiples of 3 print Fizz, of 5 Buzz, and of both FizzBuzz.
|
|
main :: () {
|
|
for number: 1..20 {
|
|
if number % 15 == 0 {
|
|
print("FizzBuzz\n");
|
|
} else if number % 3 == 0 {
|
|
print("Fizz\n");
|
|
} else if number % 5 == 0 {
|
|
print("Buzz\n");
|
|
} else {
|
|
print("%\n", number);
|
|
}
|
|
}
|
|
}
|