Data Update

This commit is contained in:
Ingy döt Net 2023-07-18 13:51:12 -07:00
parent e50b5c3114
commit 633b36288a
206 changed files with 4762 additions and 965 deletions

View file

@ -1 +1 @@
{|i|say "#{<Fizz>[i%3]}#{<Buzz>[i%5]}"||i}*100
{>"#{<Fizz>[.%3]}#{<Buzz>[.%5]}"||_}<<1..100

View file

@ -0,0 +1,28 @@
import Foundation
let formats: [String] = [
"%d",
"%d",
"fizz",
"%d",
"buzz",
"fizz",
"%d",
"%d",
"fizz",
"buzz",
"%d",
"fizz",
"%d",
"%d",
"fizzbuzz",
]
var count = 0
var index = 0
while count < 100 {
count += 1
print(String(format: formats[index], count))
index += 1
index %= 15
}