From 680d55b7d19957c68cb5ac8574faff2c95b9aa4c Mon Sep 17 00:00:00 2001 From: Buhaev-Yauhenii Date: Wed, 23 Feb 2022 16:55:59 +0300 Subject: [PATCH] fizzbuzz --- 4-loops/.DS_Store | Bin 0 -> 6148 bytes 4-loops/fizzbuzz/.DS_Store | Bin 0 -> 6148 bytes .../FizzBuzz\302\240\342\200\224 1.swift" | 6 ++++++ 3 files changed, 6 insertions(+) create mode 100644 4-loops/.DS_Store create mode 100644 4-loops/fizzbuzz/.DS_Store create mode 100644 "4-loops/fizzbuzz/FizzBuzz\302\240\342\200\224 1.swift" diff --git a/4-loops/.DS_Store b/4-loops/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8687ab6775b920f0dde5e8ba73215a5c0ff1e736 GIT binary patch literal 6148 zcmeH~&q~8U5XQgJ3Z;7J(TlJz&_a*iVyOqO_60QBYB4mR{R5tI_hEcQ{bpws69c`8 z=uFuCW_M>M=?|LC0+8|gb_DbRblFrzofgyS)}_4^d_a|0qr{3=ff=4!3jM|@efAzs zc@2=`%ky6pEC8=## zbA~O36HBF9s-z=^SUTrJip!E# zrj`y#hYv}2{y4lyygTcM7!Juyy>|jmpiW@lhJD@t&-s^WJ>=I@eB=b2z#k(Zoyl}E z=8sBy>$jh$du?F5VpG$&N*x;g+D8Bf`W`usi?$xrXIz%FGSw literal 0 HcmV?d00001 diff --git a/4-loops/fizzbuzz/.DS_Store b/4-loops/fizzbuzz/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c2079f423f88c86d4314268db181cd08b5ca1d93 GIT binary patch literal 6148 zcmeHKO-h473{A9)f*?g)xSSIddV}$!3a-6?R1t(i7qtkk<|rP~8|ZsUlzw#9MIB2zS?(&z}?-Jz2RCaTpKWGC-Tq z{crF+%j?~G^SD}XR)`}>*J$%E6Idb_2e}{RQi?2$gMN)q%r&otSx8{XcWdZ8W7l{O8`3DN3Lwp#|v%5)xhS+D)d`AFfRf| LNUCJu2n>7!rJXG} literal 0 HcmV?d00001 diff --git "a/4-loops/fizzbuzz/FizzBuzz\302\240\342\200\224 1.swift" "b/4-loops/fizzbuzz/FizzBuzz\302\240\342\200\224 1.swift" new file mode 100644 index 0000000..305ce25 --- /dev/null +++ "b/4-loops/fizzbuzz/FizzBuzz\302\240\342\200\224 1.swift" @@ -0,0 +1,6 @@ +// Fizz Buzz 🐝 +// Buhaev Yauheni + +for i in 1...100{ + (i % 3 == 0 && i % 5 == 0) ? print("FizzBuzz") : i%5 == 0 ? print("Buzz") : i%3 == 0 ? print("Fizz") : print(i) +}